How To Install dateutils on CentOS 8

In this tutorial we learn how to install dateutils on CentOS 8. dateutils is Command-line date and time calculation, conversion, and comparison

Introduction

In this tutorial we learn how to install dateutils on CentOS 8.

What is dateutils

Tools which revolve around fiddling with dates and times on the command line, with a strong focus on use cases that arise when dealing with large amounts of financial data.

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

Install dateutils on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install dateutils using yum by running the following command:

sudo yum -y install dateutils

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

sudo dnf -y install dateutils

How To Uninstall dateutils on CentOS 8

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

sudo dnf remove dateutils

References

Summary

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