How To Install netcdf on Fedora 34

netcdf is Libraries for the Unidata network Common Data Form Libraries for the Unidata network Common Data Form

Introduction

In this tutorial we learn how to install netcdf on Fedora 34.

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 can be accessed by computers with different ways of storing integers, characters, and floating-point numbers. o Direct-access efficiently, without first reading through all the preceding data. o Appendable 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. netcdf 4.7.3 6.fc34 x86_64 663 k netcdf-4.7.3-6.fc34.src.rpm fedora Libraries for the Unidata network Common Data Form http 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 can be accessed by computers with different ways of storing integers, characters, and floating-point numbers. o Direct-access efficiently, without first reading through all the preceding data. o Appendable 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install netcdf.

Install netcdf on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install netcdf

Install netcdf on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install netcdf

How To Uninstall netcdf on Fedora 34

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

sudo dnf remove netcdf

netcdf Package Contents on Fedora 34

/usr/bin/nccopy
/usr/bin/ncdump
/usr/bin/ncgen
/usr/bin/ncgen3
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/150d5a398265441943b4a14f6f1e956c5be057
/usr/lib/.build-id/44
/usr/lib/.build-id/44/7d7c277a676427f408a9aa5303b3bbe8c175d4
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/a26e0c70d934a08ead313ca18554baa3c4f240
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/e1b1a9ed173921de76ec9430cd9bf5c61f87ba
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/17fba46dbc2b786037dabce9bb82a65754ef5f
/usr/lib64/libnetcdf.so.15
/usr/lib64/libnetcdf.so.15.2.1
/usr/share/doc/netcdf
/usr/share/doc/netcdf/README.md
/usr/share/doc/netcdf/RELEASE_NOTES.md
/usr/share/licenses/netcdf
/usr/share/licenses/netcdf/COPYRIGHT
/usr/share/man/man1/nccopy.1.gz
/usr/share/man/man1/ncdump.1.gz
/usr/share/man/man1/ncgen.1.gz
/usr/share/man/man1/ncgen3.1.gz
/usr/bin/nccopy
/usr/bin/ncdump
/usr/bin/ncgen
/usr/bin/ncgen3
/usr/lib/.build-id
/usr/lib/.build-id/80
/usr/lib/.build-id/80/7f9f6e9f9cc0bee9bb46487e6dcae3e3208842
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/43de121dd17c8400ab6b5a40841bac8c83549b
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/c4405a729469c6a401ebdd1f8fd48dcc75587e
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/87e98cfa8e95b65c9f4adf5fd36d40ad3aeae8
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/c06ed692b4f8c6a7c96c06c5a5cf4cf57e903c
/usr/lib/libnetcdf.so.15
/usr/lib/libnetcdf.so.15.2.1
/usr/share/doc/netcdf
/usr/share/doc/netcdf/README.md
/usr/share/doc/netcdf/RELEASE_NOTES.md
/usr/share/licenses/netcdf
/usr/share/licenses/netcdf/COPYRIGHT
/usr/share/man/man1/nccopy.1.gz
/usr/share/man/man1/ncdump.1.gz
/usr/share/man/man1/ncgen.1.gz
/usr/share/man/man1/ncgen3.1.gz

References

Summary

In this tutorial we learn how to install netcdf on Fedora 34 using yum and dnf.