How To Install python-peak-util-extremes on CentOS 7

In this tutorial we learn how to install python-peak-util-extremes on CentOS 7. python-peak-util-extremes is Production-quality ‘Min’ and ‘Max’ objects

Introduction

In this tutorial we learn how to install python-peak-util-extremes on CentOS 7.

What is python-peak-util-extremes

The peak.util.extremes module provides a production-quality implementation of the Min and Max objects from PEP 326. While PEP 326 was rejected for inclusion in the language or standard library, the objects described in it are useful in a variety of applications. In PEAK, they have been used to implement generic functions (in RuleDispatch and PEAK-Rules), as well as to handle scheduling and time operations in the Trellis. Because this has led to each project copying the same code, we’ve now split the module out so it can be used independently.

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

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

sudo yum -y install python-peak-util-extremes

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

sudo dnf -y install python-peak-util-extremes

How To Uninstall python-peak-util-extremes on CentOS 7

To uninstall only the python-peak-util-extremes package we can use the following command:

sudo dnf remove python-peak-util-extremes

References

Summary

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