How To Install python3-aenum on AlmaLinux 8

In this tutorial we learn how to install python3-aenum in AlmaLinux 8. python3-aenum is Advanced Enumerations, NamedTuples and NamedConstants for Python

Introduction

In this tutorial we learn how to install python3-aenum on AlmaLinux 8.

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 AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-aenum.

Install python3-aenum on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-aenum using dnf by running the following command:

sudo dnf -y install python3-aenum

Install python3-aenum on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-aenum

How To Uninstall python3-aenum on AlmaLinux 8

To uninstall only the python3-aenum package we can use the following command:

sudo dnf remove python3-aenum

References

Summary

In this tutorial we learn how to install python3-aenum on AlmaLinux 8 using yum and dnf.