How To Install python-workerpool on CentOS 7

In this tutorial we learn how to install python-workerpool on CentOS 7. python-workerpool is Multithreaded job distribution module

Introduction

In this tutorial we learn how to install python-workerpool on CentOS 7.

What is python-workerpool

The workerpool module for python 2 is a simple framework for easily distributing jobs into multiple worker threads. Examples of usage can be found in the unit tests and the samples provided. This module facilitates distributing simple operations into jobs that are sent to worker threads, maintained by a pool object. It consists of these components * Jobs - single units of work that need to be performed. * Workers - workers grab jobs from a queue and run them. * Worker pool - keeps track of workers and the job queue.

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

Install python-workerpool on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install python-workerpool

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

sudo dnf -y install python-workerpool

How To Uninstall python-workerpool on CentOS 7

To uninstall only the python-workerpool package we can use the following command:

sudo dnf remove python-workerpool

References

Summary

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