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

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

Introduction

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

What is netcdf-openmpi-devel

NetCDF parallel openmpi development files

We can use yum or dnf to install netcdf-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-openmpi-devel.

Install netcdf-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-openmpi-devel using dnf by running the following command:

sudo dnf -y install netcdf-openmpi-devel

Install netcdf-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-openmpi-devel using yum by running the following command:

sudo yum -y install netcdf-openmpi-devel

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

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

sudo dnf remove netcdf-openmpi-devel

netcdf-openmpi-devel Package Contents on Rocky Linux 8

/usr/include/openmpi-x86_64/netcdf.h
/usr/include/openmpi-x86_64/netcdf_aux.h
/usr/include/openmpi-x86_64/netcdf_filter.h
/usr/include/openmpi-x86_64/netcdf_mem.h
/usr/include/openmpi-x86_64/netcdf_meta.h
/usr/include/openmpi-x86_64/netcdf_par.h
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/0daafaa8bdff7c3ef7e0a59492f89c49ceec20
/usr/lib64/openmpi/bin/nc-config
/usr/lib64/openmpi/lib/libh5bzip2.so
/usr/lib64/openmpi/lib/libnetcdf.settings
/usr/lib64/openmpi/lib/libnetcdf.so
/usr/lib64/openmpi/lib/pkgconfig/netcdf.pc
/usr/lib64/openmpi/share/man/man3/netcdf.3

References

Summary

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