How To Install perl-DateTime on CentOS 7
Introduction
In this tutorial we learn how to install perl-DateTime on CentOS 7.
What is perl-DateTime
DateTime is a class for the representation of date/time combinations. It represents the Gregorian calendar, extended backwards in time before its creation (in 1582). This is sometimes known as the “proleptic Gregorian calendar”. In this calendar, the first day of the calendar (the epoch), is the first day of year 1, which corresponds to the date which was (incorrectly) believed to be the birth of Jesus Christ.
We can use yum or dnf to install perl-DateTime on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-DateTime.
Install perl-DateTime on CentOS 7 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install perl-DateTime using yum by running the following command:
sudo yum -y install perl-DateTime
Install perl-DateTime 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.
sudo dnf makecache
After updating yum database, We can install perl-DateTime using dnf by running the following command:
sudo dnf -y install perl-DateTime
How To Uninstall perl-DateTime on CentOS 7
To uninstall only the perl-DateTime package we can use the following command:
sudo dnf remove perl-DateTime
References
Summary
In this tutorial we learn how to install perl-DateTime on CentOS 7 using yum and dnf.