How To Install python3-dateutils on AlmaLinux 8

In this tutorial we learn how to install python3-dateutils in AlmaLinux 8. python3-dateutils is Various utilities for working with date and datetime objects

Introduction

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

What is python3-dateutils

This package is providing more complex arithmetic operations on dates/times. Heavy use is made of the relativedelta type from the dateutil library. Much of this package is just a light wrapper on top of this with some added features such as range generation and business day calculation.

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

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

sudo dnf -y install python3-dateutils

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

sudo yum -y install python3-dateutils

How To Uninstall python3-dateutils on AlmaLinux 8

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

sudo dnf remove python3-dateutils

References

Summary

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