How To Install dateutils on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install dateutils on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install dateutils.

Install dateutils on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install dateutils

Install dateutils on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install dateutils

How To Uninstall dateutils on Rocky Linux 8

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

sudo dnf remove dateutils

dateutils Package Contents on Rocky Linux 8

/usr/bin/dateadd
/usr/bin/dateconv
/usr/bin/datediff
/usr/bin/dategrep
/usr/bin/dateround
/usr/bin/dateseq
/usr/bin/datesort
/usr/bin/datetest
/usr/bin/datezone
/usr/bin/strptime
/usr/lib/.build-id
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/2c63a1266c18029e3764f50a151090cd204209
/usr/lib/.build-id/44
/usr/lib/.build-id/44/4a0f6c12dce357b39a98585ef5df94aa727369
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/08b29fa8bff517cd1913e5e7936371b6985bb1
/usr/lib/.build-id/54
/usr/lib/.build-id/54/4e9b27bb0bc68ea37e4f44f678e78f877f1c1c
/usr/lib/.build-id/61
/usr/lib/.build-id/61/f5e991e1a641a75f8450c226d5eeade30f2bd8
/usr/lib/.build-id/65
/usr/lib/.build-id/65/3adb5ea57c03e01ee868a99a7e393d06d104ea
/usr/lib/.build-id/74
/usr/lib/.build-id/74/8921eaf9bfa9f5a5b627fb8e3dc7bf65ac568b
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/23090d456461cb98361cdce6fc73b0a7c6713a
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/ea0cc914c47dc5955febbdc9733e1cc35281b4
/usr/lib/.build-id/da
/usr/lib/.build-id/da/f11861f174f587e727ae62d38dff8cb05b467a
/usr/share/dateutils
/usr/share/dateutils/iata.tzmcc
/usr/share/dateutils/icao.tzmcc
/usr/share/dateutils/locale
/usr/share/dateutils/mic.tzmcc
/usr/share/doc/dateutils
/usr/share/doc/dateutils/README.md
/usr/share/info/dateutils.info.gz
/usr/share/licenses/dateutils
/usr/share/licenses/dateutils/LICENSE
/usr/share/man/man1/dateadd.1.gz
/usr/share/man/man1/dateconv.1.gz
/usr/share/man/man1/datediff.1.gz
/usr/share/man/man1/dategrep.1.gz
/usr/share/man/man1/dateround.1.gz
/usr/share/man/man1/dateseq.1.gz
/usr/share/man/man1/datesort.1.gz
/usr/share/man/man1/datetest.1.gz
/usr/share/man/man1/dateutils.1.gz
/usr/share/man/man1/datezone.1.gz
/usr/share/man/man1/strptime.1.gz

References

Summary

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