How To Install python-simplegeneric on CentOS 7
Introduction
In this tutorial we learn how to install python-simplegeneric on CentOS 7.
What is python-simplegeneric
The simplegeneric module lets you define simple single-dispatch generic functions, akin to Python’s built-in generic functions like len(), iter() and so on. However, instead of using specially-named methods, these generic functions use simple lookup tables, akin to those used by e.g. pickle.dump() and other generic functions found in the Python standard library.
We can use yum or dnf to install python-simplegeneric on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-simplegeneric.
Install python-simplegeneric 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-simplegeneric using yum by running the following command:
sudo yum -y install python-simplegeneric
Install python-simplegeneric 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-simplegeneric using dnf by running the following command:
sudo dnf -y install python-simplegeneric
How To Uninstall python-simplegeneric on CentOS 7
To uninstall only the python-simplegeneric package we can use the following command:
sudo dnf remove python-simplegeneric
References
Summary
In this tutorial we learn how to install python-simplegeneric on CentOS 7 using yum and dnf.