How To Install parallel on CentOS 8

parallel is Shell tool for executing jobs in parallel

Introduction

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

What is parallel

GNU Parallel is a shell tool for executing jobs in parallel using one or more machines. A job is typically a single command or a small script that has to be run for each of the lines in the input. The typical input is a list of files, a list of hosts, a list of users, or a list of tables. If you use xargs today you will find GNU Parallel very easy to use. If you write loops in shell, you will find GNU Parallel may be able to replace most of the loops and make them run faster by running jobs in parallel. If you use ppss or pexec you will find GNU Parallel will often make the command easier to read. GNU Parallel also makes sure output from the commands is the same output as you would get had you run the commands sequentially. This makes it possible to use output from GNU Parallel as input for other programs. GNU Parallel is command-line-compatible with moreutils’ parallel, but offers additional features.

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

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

sudo dnf -y install parallel

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

sudo yum -y install parallel

How To Uninstall parallel on CentOS 8

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

sudo dnf remove parallel

parallel Package Contents on CentOS 8

/usr/bin/niceload
/usr/bin/parallel
/usr/bin/parcat
/usr/bin/parset
/usr/bin/sem
/usr/bin/sql
/usr/share/doc/parallel
/usr/share/doc/parallel/NEWS
/usr/share/doc/parallel/README
/usr/share/licenses/parallel
/usr/share/licenses/parallel/COPYING
/usr/share/man/man1/niceload.1.gz
/usr/share/man/man1/parallel.1.gz
/usr/share/man/man1/parcat.1.gz
/usr/share/man/man1/parset.1.gz
/usr/share/man/man1/sem.1.gz
/usr/share/man/man1/sql.1.gz
/usr/share/man/man7/parallel_alternatives.7.gz
/usr/share/man/man7/parallel_book.7.gz
/usr/share/man/man7/parallel_design.7.gz
/usr/share/man/man7/parallel_tutorial.7.gz

References

Summary

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