How To Install datamash on CentOS 8

datamash is A statistical, numerical and textual operations tool

Introduction

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

What is datamash

GNU datamash is a command-line program which performs basic numeric,textual and statistical operations on input textual data files.

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

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

sudo dnf -y install datamash

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

sudo yum -y install datamash

How To Uninstall datamash on CentOS 8

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

sudo dnf remove datamash

datamash Package Contents on CentOS 8

/usr/bin/datamash
/usr/lib/.build-id
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/fb66643b15a169eb5eb0b2823a0762867324b5
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/datamash
/usr/share/datamash
/usr/share/datamash/bash-completion.d
/usr/share/datamash/examples
/usr/share/datamash/examples/genes.txt
/usr/share/datamash/examples/genes_h.txt
/usr/share/datamash/examples/readme.md
/usr/share/datamash/examples/scores.txt
/usr/share/datamash/examples/scores_h.txt
/usr/share/doc/datamash
/usr/share/doc/datamash/AUTHORS
/usr/share/doc/datamash/ChangeLog
/usr/share/doc/datamash/NEWS
/usr/share/doc/datamash/README
/usr/share/doc/datamash/THANKS
/usr/share/doc/datamash/TODO
/usr/share/info/datamash.info.gz
/usr/share/licenses/datamash
/usr/share/licenses/datamash/COPYING
/usr/share/locale/da/LC_MESSAGES/datamash.mo
/usr/share/locale/de/LC_MESSAGES/datamash.mo
/usr/share/locale/eo/LC_MESSAGES/datamash.mo
/usr/share/locale/es/LC_MESSAGES/datamash.mo
/usr/share/locale/fr/LC_MESSAGES/datamash.mo
/usr/share/locale/nb/LC_MESSAGES/datamash.mo
/usr/share/locale/nl/LC_MESSAGES/datamash.mo
/usr/share/locale/pt_BR/LC_MESSAGES/datamash.mo
/usr/share/locale/sr/LC_MESSAGES/datamash.mo
/usr/share/locale/sv/LC_MESSAGES/datamash.mo
/usr/share/locale/uk/LC_MESSAGES/datamash.mo
/usr/share/locale/vi/LC_MESSAGES/datamash.mo
/usr/share/man/man1/datamash.1.gz

References

Summary

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