How To Install perl-Time-Local on CentOS 7
Introduction
In this tutorial we learn how to install perl-Time-Local
on CentOS 7.
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 CentOS 7. 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 CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install perl-Time-Local
using yum
by running the following command:
Install perl-Time-Local on CentOS 7 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.
After updating yum database, We can install perl-Time-Local
using dnf
by running the following command:
How To Uninstall perl-Time-Local on CentOS 7
To uninstall only the perl-Time-Local
package we can use the following command:
References
Summary
In this tutorial we learn how to install perl-Time-Local
on CentOS 7 using yum
and dnf
.