How To Install parallel on Rocky Linux 8

In this tutorial we learn how to install parallel on Rocky Linux 8. parallel is Shell tool for executing jobs in parallel

Introduction

In this tutorial we learn how to install parallel on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install parallel.

Install parallel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install parallel

Install parallel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Rocky Linux 8

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

sudo dnf remove parallel

parallel Package Contents on Rocky Linux 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 Rocky Linux 8 using yum and dnf.