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

In this tutorial we learn how to install netcdf-cxx-devel on Rocky Linux 8. netcdf-cxx-devel is Development files legacy netCDF C++ library

Introduction

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

What is netcdf-cxx-devel

This package contains the legacy netCDF C++ library header files and shared devel library.

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

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

sudo dnf -y install netcdf-cxx-devel

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

sudo yum -y install netcdf-cxx-devel

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

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

sudo dnf remove netcdf-cxx-devel

netcdf-cxx-devel Package Contents on Rocky Linux 8

/usr/include/ncvalues.h
/usr/include/netcdf.hh
/usr/include/netcdfcpp.h
/usr/lib/.build-id
/usr/lib/.build-id/49
/usr/lib/.build-id/49/61fc660d8a6a130e1b4aa5459b513f070de795
/usr/lib/.build-id/53
/usr/lib/.build-id/53/72625f261bdb2e7f5ec4cc395da2243c3d102b
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/97c15d132ef2b53630675b0493c18803b6c9ca
/usr/lib/.build-id/74
/usr/lib/.build-id/74/e1b73260d18b8d84b5fbbf8d911731718354b5
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/18dfd1c74fecac7e19e0bee97a3c8508036d87
/usr/lib/.build-id/90
/usr/lib/.build-id/90/7cf6ae317c138413090a1ac752416307b0297b
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/8b8ec3b68eb689e25b43b6272f89772ba85748
/usr/lib/.build-id/be
/usr/lib/.build-id/be/ad109bf915110a3d9f38c9b7b30e1165ce046c
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/93fc8e06ef3ad941fea12fa99704ac98c92a9b
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/4efca33367f705b59b86ca7d992c5f27c49ef9
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/38cf3e00bf7f5179ef284d29d627d8ccf9faa6
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/aeb94f1cacf3b7f7879c6aebe38b16b4a51ba2
/usr/lib64/libnetcdf_c++.so
/usr/share/doc/netcdf-cxx-devel
/usr/share/doc/netcdf-cxx-devel/examples
/usr/share/doc/netcdf-cxx-devel/examples/.libs
/usr/share/doc/netcdf-cxx-devel/examples/.libs/lt-pres_temp_4D_rd
/usr/share/doc/netcdf-cxx-devel/examples/.libs/lt-pres_temp_4D_wr
/usr/share/doc/netcdf-cxx-devel/examples/.libs/lt-sfc_pres_temp_rd
/usr/share/doc/netcdf-cxx-devel/examples/.libs/lt-sfc_pres_temp_wr
/usr/share/doc/netcdf-cxx-devel/examples/.libs/lt-simple_xy_rd
/usr/share/doc/netcdf-cxx-devel/examples/.libs/lt-simple_xy_wr
/usr/share/doc/netcdf-cxx-devel/examples/.libs/pres_temp_4D_rd
/usr/share/doc/netcdf-cxx-devel/examples/.libs/pres_temp_4D_wr
/usr/share/doc/netcdf-cxx-devel/examples/.libs/sfc_pres_temp_rd
/usr/share/doc/netcdf-cxx-devel/examples/.libs/sfc_pres_temp_wr
/usr/share/doc/netcdf-cxx-devel/examples/.libs/simple_xy_rd
/usr/share/doc/netcdf-cxx-devel/examples/.libs/simple_xy_wr
/usr/share/doc/netcdf-cxx-devel/examples/Makefile
/usr/share/doc/netcdf-cxx-devel/examples/Makefile.am
/usr/share/doc/netcdf-cxx-devel/examples/Makefile.in
/usr/share/doc/netcdf-cxx-devel/examples/pres_temp_4D.nc
/usr/share/doc/netcdf-cxx-devel/examples/pres_temp_4D_rd
/usr/share/doc/netcdf-cxx-devel/examples/pres_temp_4D_rd.cpp
/usr/share/doc/netcdf-cxx-devel/examples/pres_temp_4D_rd.o
/usr/share/doc/netcdf-cxx-devel/examples/pres_temp_4D_wr
/usr/share/doc/netcdf-cxx-devel/examples/pres_temp_4D_wr.cpp
/usr/share/doc/netcdf-cxx-devel/examples/pres_temp_4D_wr.o
/usr/share/doc/netcdf-cxx-devel/examples/sfc_pres_temp.nc
/usr/share/doc/netcdf-cxx-devel/examples/sfc_pres_temp_rd
/usr/share/doc/netcdf-cxx-devel/examples/sfc_pres_temp_rd.cpp
/usr/share/doc/netcdf-cxx-devel/examples/sfc_pres_temp_rd.o
/usr/share/doc/netcdf-cxx-devel/examples/sfc_pres_temp_wr
/usr/share/doc/netcdf-cxx-devel/examples/sfc_pres_temp_wr.cpp
/usr/share/doc/netcdf-cxx-devel/examples/sfc_pres_temp_wr.o
/usr/share/doc/netcdf-cxx-devel/examples/simple_xy.nc
/usr/share/doc/netcdf-cxx-devel/examples/simple_xy_rd
/usr/share/doc/netcdf-cxx-devel/examples/simple_xy_rd.cpp
/usr/share/doc/netcdf-cxx-devel/examples/simple_xy_rd.o
/usr/share/doc/netcdf-cxx-devel/examples/simple_xy_wr
/usr/share/doc/netcdf-cxx-devel/examples/simple_xy_wr.cpp
/usr/share/doc/netcdf-cxx-devel/examples/simple_xy_wr.o
/usr/share/doc/netcdf-cxx-devel/netcdf-cxx.pdf
/usr/share/info/netcdf-cxx.info.gz

References

Summary

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