How To Install perl-MCE on CentOS 7

In this tutorial we learn how to install perl-MCE on CentOS 7. perl-MCE is Many-core Engine for Perl providing parallel processing

Introduction

In this tutorial we learn how to install perl-MCE on CentOS 7.

What is perl-MCE

Many-core Engine (MCE) for Perl helps enable a new level of performance by maximizing all available cores. MCE spawns a pool of workers and therefore does not fork a new process per each element of data. Instead, MCE follows a bank queuing model. Imagine the line being the data and bank-tellers the parallel workers. MCE enhances that model by adding the ability to chunk the next n elements from the input stream to the next available worker.

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

Install perl-MCE on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-MCE using yum by running the following command:

sudo yum -y install perl-MCE

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

sudo dnf -y install perl-MCE

How To Uninstall perl-MCE on CentOS 7

To uninstall only the perl-MCE package we can use the following command:

sudo dnf remove perl-MCE

References

Summary

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