How To Install netcdf-devel on Rocky Linux 8

In this tutorial we learn how to install netcdf-devel on Rocky Linux 8. netcdf-devel is Development files for netcdf

Introduction

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

What is netcdf-devel

This package contains the netCDF C header files, shared devel libs, and man pages.

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

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

sudo dnf -y install netcdf-devel

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

sudo yum -y install netcdf-devel

How To Uninstall netcdf-devel on Rocky Linux 8

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

sudo dnf remove netcdf-devel

netcdf-devel Package Contents on Rocky Linux 8

/usr/bin/nc-config
/usr/include/netcdf.h
/usr/include/netcdf_aux.h
/usr/include/netcdf_filter.h
/usr/include/netcdf_mem.h
/usr/include/netcdf_meta.h
/usr/lib/.build-id
/usr/lib/.build-id/99
/usr/lib/.build-id/99/5989ce89bd750bc040faf20c732e8ccf87b215
/usr/lib64/libh5bzip2.so
/usr/lib64/libnetcdf.settings
/usr/lib64/libnetcdf.so
/usr/lib64/pkgconfig/netcdf.pc
/usr/share/doc/netcdf-devel
/usr/share/doc/netcdf-devel/examples
/usr/share/doc/netcdf-devel/examples/C
/usr/share/doc/netcdf-devel/examples/C/CMakeLists.txt
/usr/share/doc/netcdf-devel/examples/C/Makefile.am
/usr/share/doc/netcdf-devel/examples/C/Makefile.in
/usr/share/doc/netcdf-devel/examples/C/file.c
/usr/share/doc/netcdf-devel/examples/C/filter_example.c
/usr/share/doc/netcdf-devel/examples/C/format.c
/usr/share/doc/netcdf-devel/examples/C/large_files.c
/usr/share/doc/netcdf-devel/examples/C/met4D.c
/usr/share/doc/netcdf-devel/examples/C/parallel_vara.c
/usr/share/doc/netcdf-devel/examples/C/pres_temp_4D_rd.c
/usr/share/doc/netcdf-devel/examples/C/pres_temp_4D_wr.c
/usr/share/doc/netcdf-devel/examples/C/quick_large_files.c
/usr/share/doc/netcdf-devel/examples/C/quick_small_files.c
/usr/share/doc/netcdf-devel/examples/C/run_examples.sh
/usr/share/doc/netcdf-devel/examples/C/run_examples4.sh
/usr/share/doc/netcdf-devel/examples/C/run_filter.sh
/usr/share/doc/netcdf-devel/examples/C/run_par_test.sh.in
/usr/share/doc/netcdf-devel/examples/C/sfc_pres_temp_more.c
/usr/share/doc/netcdf-devel/examples/C/sfc_pres_temp_rd.c
/usr/share/doc/netcdf-devel/examples/C/sfc_pres_temp_wr.c
/usr/share/doc/netcdf-devel/examples/C/simple.c
/usr/share/doc/netcdf-devel/examples/C/simple_nc4_rd.c
/usr/share/doc/netcdf-devel/examples/C/simple_nc4_wr.c
/usr/share/doc/netcdf-devel/examples/C/simple_xy_nc4_rd.c
/usr/share/doc/netcdf-devel/examples/C/simple_xy_nc4_wr.c
/usr/share/doc/netcdf-devel/examples/C/simple_xy_rd.c
/usr/share/doc/netcdf-devel/examples/C/simple_xy_wr.c
/usr/share/doc/netcdf-devel/examples/CDL
/usr/share/doc/netcdf-devel/examples/CDL/CMakeLists.txt
/usr/share/doc/netcdf-devel/examples/CDL/Makefile.am
/usr/share/doc/netcdf-devel/examples/CDL/Makefile.in
/usr/share/doc/netcdf-devel/examples/CDL/do_comps.sh
/usr/share/doc/netcdf-devel/examples/CDL/pres_temp_4D.cdl
/usr/share/doc/netcdf-devel/examples/CDL/sfc_pres_temp.cdl
/usr/share/doc/netcdf-devel/examples/CDL/simple_xy.cdl
/usr/share/doc/netcdf-devel/examples/CMakeLists.txt
/usr/share/doc/netcdf-devel/examples/Makefile.am
/usr/share/doc/netcdf-devel/examples/Makefile.in
/usr/share/man/man3/netcdf.3.gz

References

Summary

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