How To Install parallel on Fedora 34

parallel is Shell tool for executing jobs in parallel

Introduction

In this tutorial we learn how to install parallel on Fedora 34.

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

Install parallel on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34

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

sudo dnf remove parallel

parallel Package Contents on Fedora 34

/usr/bin/niceload
/usr/bin/parallel
/usr/bin/parcat
/usr/bin/parset
/usr/bin/parsort
/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/parsort.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 Fedora 34 using yum and dnf.