How To Install python-gear on CentOS 7

In this tutorial we learn how to install python-gear on CentOS 7. python-gear is Pure Python Async Gear Protocol Library

Introduction

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

What is python-gear

python-gear implements an asynchronous event-driven interface to Gearman. It provides interfaces to build a client or worker, and access to the administrative protocol. The design approach is to keep it simple, with a relatively thin abstraction of the Gearman protocol itself. It should be easy to use to build a client or worker that operates either synchronously or asynchronously. The module also provides a simple Gearman server for use as a convenience in unit tests. The server is not designed for production use under load.

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

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

sudo yum -y install python-gear

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

sudo dnf -y install python-gear

How To Uninstall python-gear on CentOS 7

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

sudo dnf remove python-gear

References

Summary

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