How To Install perl-Time-Local.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install perl-Time-Local.noarch on Amazon Linux 2.
What is perl-Time-Local.noarch
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 to install perl-Time-Local.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Time-Local.noarch.
Install perl-Time-Local.noarch on Amazon Linux 2 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.noarch using yum by running the following command:
sudo yum -y install perl-Time-Local.noarch
How To Uninstall perl-Time-Local.noarch on Amazon Linux 2
To uninstall only the perl-Time-Local.noarch package we can use the following command:
sudo yum remove perl-Time-Local.noarch
perl-Time-Local.noarch Package Contents on Amazon Linux 2
/usr/share/doc/perl-Time-Local-1.2300
/usr/share/doc/perl-Time-Local-1.2300/Changes
/usr/share/doc/perl-Time-Local-1.2300/LICENSE
/usr/share/doc/perl-Time-Local-1.2300/README
/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.noarch on Amazon Linux 2 using yum.