How To Install python3-certifi on AlmaLinux 8

In this tutorial we learn how to install python3-certifi in AlmaLinux 8. python3-certifi is Python package for providing Mozilla’s CA Bundle

Introduction

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

What is python3-certifi

Certifi is a carefully curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts. It has been extracted from the Requests project. Please note that this Fedora package does not actually include a certificate collection at all. It reads the system shared certificate trust collection instead. For more details on this system, see the ca-certificates package. This package provides the Python 3 certifi library.

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

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

sudo dnf -y install python3-certifi

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

sudo yum -y install python3-certifi

How To Uninstall python3-certifi on AlmaLinux 8

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

sudo dnf remove python3-certifi

References

Summary

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