How To Install netcdf-fortran-openmpi-devel on Rocky Linux 8

In this tutorial we learn how to install netcdf-fortran-openmpi-devel on Rocky Linux 8. netcdf-fortran-openmpi-devel is NetCDF Fortran openmpi development files

Introduction

In this tutorial we learn how to install netcdf-fortran-openmpi-devel on Rocky Linux 8.

What is netcdf-fortran-openmpi-devel

NetCDF Fortran parallel openmpi development files

We can use yum or dnf to install netcdf-fortran-openmpi-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install netcdf-fortran-openmpi-devel.

Install netcdf-fortran-openmpi-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install netcdf-fortran-openmpi-devel using dnf by running the following command:

sudo dnf -y install netcdf-fortran-openmpi-devel

Install netcdf-fortran-openmpi-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install netcdf-fortran-openmpi-devel using yum by running the following command:

sudo yum -y install netcdf-fortran-openmpi-devel

How To Uninstall netcdf-fortran-openmpi-devel on Rocky Linux 8

To uninstall only the netcdf-fortran-openmpi-devel package we can use the following command:

sudo dnf remove netcdf-fortran-openmpi-devel

netcdf-fortran-openmpi-devel Package Contents on Rocky Linux 8

/usr/include/openmpi-x86_64/netcdf.inc
/usr/lib64/gfortran/modules/openmpi/netcdf.mod
/usr/lib64/gfortran/modules/openmpi/netcdf4_f03.mod
/usr/lib64/gfortran/modules/openmpi/netcdf4_nc_interfaces.mod
/usr/lib64/gfortran/modules/openmpi/netcdf4_nf_interfaces.mod
/usr/lib64/gfortran/modules/openmpi/netcdf_fortv2_c_interfaces.mod
/usr/lib64/gfortran/modules/openmpi/netcdf_nc_data.mod
/usr/lib64/gfortran/modules/openmpi/netcdf_nc_interfaces.mod
/usr/lib64/gfortran/modules/openmpi/netcdf_nf_data.mod
/usr/lib64/gfortran/modules/openmpi/netcdf_nf_interfaces.mod
/usr/lib64/gfortran/modules/openmpi/typesizes.mod
/usr/lib64/openmpi/bin/nf-config
/usr/lib64/openmpi/lib/libnetcdff.so
/usr/lib64/openmpi/lib/pkgconfig/netcdf-fortran.pc
/usr/lib64/openmpi/share/man/man3/netcdf_f77.3.gz
/usr/lib64/openmpi/share/man/man3/netcdf_fortran.3.gz

References

Summary

In this tutorial we learn how to install netcdf-fortran-openmpi-devel on Rocky Linux 8 using yum and dnf.