How To Install python3-aenum on CentOS 7
Introduction
In this tutorial we learn how to install python3-aenum
on CentOS 7.
What is python3-aenum
aenum includes a Python stdlib Enum-compatible data type, as well as a metaclass-based NamedTuple implementation and a NamedConstant class. An Enum is a set of symbolic names (members) bound to unique, constant values. Within an enumeration, the members can be compared by identity, and the enumeration itself can be iterated over. Support exists for unique values, multiple values, auto-numbering, and suspension of aliasing, plus the ability to have values automatically bound to attributes. A NamedTuple is a class-based, fixed-length tuple with a name for each possible position accessible using attribute-access notation as well as the standard index notation. A NamedConstant is a class whose members cannot be rebound; it lacks all other Enum capabilities, however.
We can use yum
or dnf
to install python3-aenum
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python3-aenum.
Install python3-aenum on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python3-aenum
using yum
by running the following command:
Install python3-aenum 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.
After updating yum database, We can install python3-aenum
using dnf
by running the following command:
How To Uninstall python3-aenum on CentOS 7
To uninstall only the python3-aenum
package we can use the following command:
References
Summary
In this tutorial we learn how to install python3-aenum
on CentOS 7 using yum
and dnf
.