How To Install parallel on CentOS 7

In this tutorial we learn how to install parallel on CentOS 7. parallel is Shell tool for executing jobs in parallel

Introduction

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

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

Install parallel on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install parallel

Install parallel on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install parallel

How To Uninstall parallel on CentOS 7

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

sudo dnf remove parallel

References

Summary

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