How To Install nco on CentOS 8

nco is Suite of programs for manipulating NetCDF/HDF4 files

Introduction

In this tutorial we learn how to install nco on CentOS 8.

What is nco

The netCDF Operators, NCO, are a suite of command line programs known as operators. The operators facilitate manipulation and analysis of self-describing data stored in the freely available netCDF and HDF formats (http http ncks) takes netCDF or HDF input file(s), performs an operation (e.g., averaging, hyperslabbing, or renaming), and outputs a processed netCDF file. Although most users of netCDF and HDF data are involved in scientific research, these data formats, and thus NCO, are generic and are equally useful in fields from agriculture to zoology. The NCO User’s Guide illustrates NCO use with examples from the field of climate modeling and analysis. The NCO homepage is http

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

Install nco on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install nco

Install nco on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install nco

How To Uninstall nco on CentOS 8

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

sudo dnf remove nco

nco Package Contents on CentOS 8

/usr/bin/ncap2
/usr/bin/ncatted
/usr/bin/ncbo
/usr/bin/ncclimo
/usr/bin/ncdiff
/usr/bin/ncea
/usr/bin/ncecat
/usr/bin/nces
/usr/bin/ncflint
/usr/bin/ncks
/usr/bin/ncpdq
/usr/bin/ncra
/usr/bin/ncrcat
/usr/bin/ncremap
/usr/bin/ncrename
/usr/bin/ncwa
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/8ac444b557f3bf03ad26db84f1302eb6a377fa
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/729163e9f937293fe3ee0b29529233cc6dff05
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/90c42b6e369201b467c0443281f000d2795fd8
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/c237eef7da3b5225fcec1f2976ee83b877989c
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/23b913cb61d22a5a1951b65bf8d4b670109182
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/17d45031133dd8a850d55387eebfddf5437376
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/263f1921914678c2af455f24718737129dabfe
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/3cf4dce79cf206e9e0d3595ce33122ab11fdb0
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/397da48a6a3c62c2a5816c5382bda83725b00c
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/2ef680c4eb7ba7f850d964f4fee4cbd47d2bdb
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/6f03cfdb3c94db99e9a47047a10f251ae3f7e8
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/74bdde16687a565abaac366cf82fc6ea51abe1
/usr/lib64/libnco-4.8.1.so
/usr/lib64/libnco_c++-4.8.1.so
/usr/share/doc/nco
/usr/share/doc/nco/ChangeLog
/usr/share/doc/nco/README
/usr/share/doc/nco/TODO
/usr/share/doc/nco/index.shtml
/usr/share/doc/nco/nco.css
/usr/share/doc/nco/nco.html
/usr/share/doc/nco/nco.pdf
/usr/share/doc/nco/nco.png
/usr/share/doc/nco/nco_news.shtml
/usr/share/doc/nco/nsf.png
/usr/share/doc/nco/rtfm.txt
/usr/share/info/nco.info-1.gz
/usr/share/info/nco.info-2.gz
/usr/share/info/nco.info-3.gz
/usr/share/info/nco.info-4.gz
/usr/share/info/nco.info.gz
/usr/share/licenses/nco
/usr/share/licenses/nco/LICENSE
/usr/share/man/man1/ncap2.1.gz
/usr/share/man/man1/ncatted.1.gz
/usr/share/man/man1/ncbo.1.gz
/usr/share/man/man1/ncclimo.1.gz
/usr/share/man/man1/ncecat.1.gz
/usr/share/man/man1/nces.1.gz
/usr/share/man/man1/ncflint.1.gz
/usr/share/man/man1/ncks.1.gz
/usr/share/man/man1/nco.1.gz
/usr/share/man/man1/ncpdq.1.gz
/usr/share/man/man1/ncra.1.gz
/usr/share/man/man1/ncrcat.1.gz
/usr/share/man/man1/ncremap.1.gz
/usr/share/man/man1/ncrename.1.gz
/usr/share/man/man1/ncwa.1.gz

References

Summary

In this tutorial we learn how to install nco on CentOS 8 using yum and dnf.