How To Install perl-DateTime-TimeZone-Tzfile on Rocky Linux 8

In this tutorial we learn how to install perl-DateTime-TimeZone-Tzfile on Rocky Linux 8. perl-DateTime-TimeZone-Tzfile is Tzfile (zoneinfo) timezone files

Introduction

In this tutorial we learn how to install perl-DateTime-TimeZone-Tzfile on Rocky Linux 8.

What is perl-DateTime-TimeZone-Tzfile

An instance of this class represents a timezone that was encoded in a file in the tzfile(5) format. These can express arbitrary patterns of offsets from Universal Time, changing over time. Offsets and change times are limited to a resolution of one second. This class implements the DateTime can be used with DateTime objects.

We can use yum or dnf to install perl-DateTime-TimeZone-Tzfile on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-DateTime-TimeZone-Tzfile.

Install perl-DateTime-TimeZone-Tzfile 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 perl-DateTime-TimeZone-Tzfile using dnf by running the following command:

sudo dnf -y install perl-DateTime-TimeZone-Tzfile

Install perl-DateTime-TimeZone-Tzfile 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 perl-DateTime-TimeZone-Tzfile using yum by running the following command:

sudo yum -y install perl-DateTime-TimeZone-Tzfile

How To Uninstall perl-DateTime-TimeZone-Tzfile on Rocky Linux 8

To uninstall only the perl-DateTime-TimeZone-Tzfile package we can use the following command:

sudo dnf remove perl-DateTime-TimeZone-Tzfile

perl-DateTime-TimeZone-Tzfile Package Contents on Rocky Linux 8

/usr/share/doc/perl-DateTime-TimeZone-Tzfile
/usr/share/doc/perl-DateTime-TimeZone-Tzfile/Changes
/usr/share/doc/perl-DateTime-TimeZone-Tzfile/README
/usr/share/man/man3/DateTime::TimeZone::Tzfile.3pm.gz
/usr/share/perl5/vendor_perl/DateTime
/usr/share/perl5/vendor_perl/DateTime/TimeZone
/usr/share/perl5/vendor_perl/DateTime/TimeZone/Tzfile.pm

References

Summary

In this tutorial we learn how to install perl-DateTime-TimeZone-Tzfile on Rocky Linux 8 using yum and dnf.