How To Install python-trollius on CentOS 7

In this tutorial we learn how to install python-trollius on CentOS 7. python-trollius is A port of the Tulip asyncio module to Python 2

Introduction

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

What is python-trollius

Trollius is a portage of the Tulip project (asyncio module, PEP 3156) on Python 2. Trollius works on Python 2.6-3.4. It has been tested on Windows, Linux, Mac OS X, FreeBSD and OpenIndiana.

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

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

sudo yum -y install python-trollius

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

sudo dnf -y install python-trollius

How To Uninstall python-trollius on CentOS 7

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

sudo dnf remove python-trollius

References

Summary

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