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

In this tutorial we learn how to install netcdf-cxx4-devel on Rocky Linux 8. netcdf-cxx4-devel is Development files for netCDF-4 C++ API

Introduction

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

What is netcdf-cxx4-devel

Development files for netCDF-4 C++ API.

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

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

sudo dnf -y install netcdf-cxx4-devel

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

sudo yum -y install netcdf-cxx4-devel

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

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

sudo dnf remove netcdf-cxx4-devel

netcdf-cxx4-devel Package Contents on Rocky Linux 8

/usr/bin/ncxx4-config
/usr/include/mpich-x86_64
/usr/include/mpich-x86_64/ncAtt.h
/usr/include/mpich-x86_64/ncByte.h
/usr/include/mpich-x86_64/ncChar.h
/usr/include/mpich-x86_64/ncCheck.h
/usr/include/mpich-x86_64/ncCompoundType.h
/usr/include/mpich-x86_64/ncDim.h
/usr/include/mpich-x86_64/ncDouble.h
/usr/include/mpich-x86_64/ncEnumType.h
/usr/include/mpich-x86_64/ncException.h
/usr/include/mpich-x86_64/ncFile.h
/usr/include/mpich-x86_64/ncFloat.h
/usr/include/mpich-x86_64/ncGroup.h
/usr/include/mpich-x86_64/ncGroupAtt.h
/usr/include/mpich-x86_64/ncInt.h
/usr/include/mpich-x86_64/ncInt64.h
/usr/include/mpich-x86_64/ncOpaqueType.h
/usr/include/mpich-x86_64/ncShort.h
/usr/include/mpich-x86_64/ncString.h
/usr/include/mpich-x86_64/ncType.h
/usr/include/mpich-x86_64/ncUbyte.h
/usr/include/mpich-x86_64/ncUint.h
/usr/include/mpich-x86_64/ncUint64.h
/usr/include/mpich-x86_64/ncUshort.h
/usr/include/mpich-x86_64/ncVar.h
/usr/include/mpich-x86_64/ncVarAtt.h
/usr/include/mpich-x86_64/ncVlenType.h
/usr/include/mpich-x86_64/netcdf
/usr/include/ncAtt.h
/usr/include/ncByte.h
/usr/include/ncChar.h
/usr/include/ncCheck.h
/usr/include/ncCompoundType.h
/usr/include/ncDim.h
/usr/include/ncDouble.h
/usr/include/ncEnumType.h
/usr/include/ncException.h
/usr/include/ncFile.h
/usr/include/ncFloat.h
/usr/include/ncGroup.h
/usr/include/ncGroupAtt.h
/usr/include/ncInt.h
/usr/include/ncInt64.h
/usr/include/ncOpaqueType.h
/usr/include/ncShort.h
/usr/include/ncString.h
/usr/include/ncType.h
/usr/include/ncUbyte.h
/usr/include/ncUint.h
/usr/include/ncUint64.h
/usr/include/ncUshort.h
/usr/include/ncVar.h
/usr/include/ncVarAtt.h
/usr/include/ncVlenType.h
/usr/include/netcdf
/usr/include/openmpi-x86_64
/usr/include/openmpi-x86_64/ncAtt.h
/usr/include/openmpi-x86_64/ncByte.h
/usr/include/openmpi-x86_64/ncChar.h
/usr/include/openmpi-x86_64/ncCheck.h
/usr/include/openmpi-x86_64/ncCompoundType.h
/usr/include/openmpi-x86_64/ncDim.h
/usr/include/openmpi-x86_64/ncDouble.h
/usr/include/openmpi-x86_64/ncEnumType.h
/usr/include/openmpi-x86_64/ncException.h
/usr/include/openmpi-x86_64/ncFile.h
/usr/include/openmpi-x86_64/ncFloat.h
/usr/include/openmpi-x86_64/ncGroup.h
/usr/include/openmpi-x86_64/ncGroupAtt.h
/usr/include/openmpi-x86_64/ncInt.h
/usr/include/openmpi-x86_64/ncInt64.h
/usr/include/openmpi-x86_64/ncOpaqueType.h
/usr/include/openmpi-x86_64/ncShort.h
/usr/include/openmpi-x86_64/ncString.h
/usr/include/openmpi-x86_64/ncType.h
/usr/include/openmpi-x86_64/ncUbyte.h
/usr/include/openmpi-x86_64/ncUint.h
/usr/include/openmpi-x86_64/ncUint64.h
/usr/include/openmpi-x86_64/ncUshort.h
/usr/include/openmpi-x86_64/ncVar.h
/usr/include/openmpi-x86_64/ncVarAtt.h
/usr/include/openmpi-x86_64/ncVlenType.h
/usr/include/openmpi-x86_64/netcdf
/usr/lib64/libnetcdf_c++4.so
/usr/lib64/pkgconfig/netcdf-cxx4.pc
/usr/share/doc/netcdf-cxx4-devel
/usr/share/doc/netcdf-cxx4-devel/examples
/usr/share/doc/netcdf-cxx4-devel/examples/C-simple_xy.cdl
/usr/share/doc/netcdf-cxx4-devel/examples/CMakeLists.txt
/usr/share/doc/netcdf-cxx4-devel/examples/Makefile.am
/usr/share/doc/netcdf-cxx4-devel/examples/Makefile.in
/usr/share/doc/netcdf-cxx4-devel/examples/do_comps.sh
/usr/share/doc/netcdf-cxx4-devel/examples/pres_temp_4D_rd.cpp
/usr/share/doc/netcdf-cxx4-devel/examples/pres_temp_4D_wr.cpp
/usr/share/doc/netcdf-cxx4-devel/examples/sfc_pres_temp_rd.cpp
/usr/share/doc/netcdf-cxx4-devel/examples/sfc_pres_temp_wr.cpp
/usr/share/doc/netcdf-cxx4-devel/examples/simple_xy.cdl
/usr/share/doc/netcdf-cxx4-devel/examples/simple_xy_rd.cpp
/usr/share/doc/netcdf-cxx4-devel/examples/simple_xy_wr.cpp
/usr/share/doc/netcdf-cxx4-devel/examples/simple_xy_wr_formats.cpp

References

Summary

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