How To Install perl-Time-Local on Rocky Linux 8

In this tutorial we learn how to install perl-Time-Local on Rocky Linux 8. perl-Time-Local is Efficiently compute time from local and GMT time

Introduction

In this tutorial we learn how to install perl-Time-Local on Rocky Linux 8.

What is perl-Time-Local

This module provides functions that are the inverse of built-in perl functions localtime() and gmtime(). They accept a date as a six-element array, and return the corresponding time(2) value in seconds since the system epoch (Midnight, January 1, 1970 GMT on Unix, for example). This value can be positive or negative, though POSIX only requires support for positive values, so dates before the system’s epoch may not work on all operating systems.

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

Install perl-Time-Local 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-Time-Local using dnf by running the following command:

sudo dnf -y install perl-Time-Local

Install perl-Time-Local 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-Time-Local using yum by running the following command:

sudo yum -y install perl-Time-Local

How To Uninstall perl-Time-Local on Rocky Linux 8

To uninstall only the perl-Time-Local package we can use the following command:

sudo dnf remove perl-Time-Local

perl-Time-Local Package Contents on Rocky Linux 8

/usr/share/doc/perl-Time-Local
/usr/share/doc/perl-Time-Local/CONTRIBUTING.md
/usr/share/doc/perl-Time-Local/Changes
/usr/share/doc/perl-Time-Local/README.md
/usr/share/licenses/perl-Time-Local
/usr/share/licenses/perl-Time-Local/LICENSE
/usr/share/man/man3/Time::Local.3pm.gz
/usr/share/perl5/vendor_perl/Time
/usr/share/perl5/vendor_perl/Time/Local.pm

References

Summary

In this tutorial we learn how to install perl-Time-Local on Rocky Linux 8 using yum and dnf.