How To Install netcdf on CentOS 7

In this tutorial we learn how to install netcdf on CentOS 7. netcdf is Libraries for the Unidata network Common Data Form

Introduction

In this tutorial we learn how to install netcdf on CentOS 7.

What is netcdf

NetCDF (network Common Data Form) is an interface for array-oriented data access and a freely-distributed collection of software libraries for C, Fortran, C++, and perl that provides an implementation of the interface. The NetCDF library also defines a machine-independent format for representing scientific data. Together, the interface, library, and format support the creation, access, and sharing of scientific data. The NetCDF software was developed at the Unidata Program Center in Boulder, Colorado. NetCDF data is o Self-Describing data it contains. o Network-transparent that can be accessed by computers with different ways of storing integers, characters, and floating-point numbers. o Direct-access accessed efficiently, without first reading through all the preceding data. o Appendable one dimension without copying the dataset or redefining its structure. The structure of a NetCDF dataset can be changed, though this sometimes causes the dataset to be copied. o Sharable access the same NetCDF file.

We can use yum or dnf to install netcdf on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install netcdf.

Install netcdf on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install netcdf

Install netcdf on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install netcdf

How To Uninstall netcdf on CentOS 7

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

sudo dnf remove netcdf

References

Summary

In this tutorial we learn how to install netcdf on CentOS 7 using yum and dnf.