How To Install python3-cachetools on AlmaLinux 8

In this tutorial we learn how to install python3-cachetools in AlmaLinux 8. python3-cachetools is Extensible memoizing collections and decorators

Introduction

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

What is python3-cachetools

This module provides various memoizing collections and decorators, including a variant of the Python 3 Standard Library @lru_cache function decorator. This module provides multiple cache implementations based on different cache algorithms, as well as decorators for easily memoizing function and method calls.

We can use yum or dnf to install python3-cachetools on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-cachetools.

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

sudo dnf -y install python3-cachetools

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

sudo yum -y install python3-cachetools

How To Uninstall python3-cachetools on AlmaLinux 8

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

sudo dnf remove python3-cachetools

References

Summary

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