How To Install perl-DateTime-Precise on CentOS 7

In this tutorial we learn how to install perl-DateTime-Precise on CentOS 7. perl-DateTime-Precise is Perform common time and date operations with additional GPS

Introduction

In this tutorial we learn how to install perl-DateTime-Precise on CentOS 7.

What is perl-DateTime-Precise

The purpose of this library was to replace our dependence on Unix epoch time, which, being limited to a range of about 1970 to 2030, is inadequate for our purposes (we have data as old as 1870). This date library effectively handles dates from A.D. 1000 to infinity, and would probably work all the way back to 0 (ignoring, of course, the switch-over to the Gregorian calendar). The useful features of Unix epoch time (ease of date difference calculation and date comparison, strict ordering) are preserved, and elements such as human-legibility are added. The library handles fractional seconds and some date/time manipulations used for the Global Positioning Satellite system.

We can use yum or dnf to install perl-DateTime-Precise on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-DateTime-Precise.

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

sudo yum -y install perl-DateTime-Precise

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

sudo dnf -y install perl-DateTime-Precise

How To Uninstall perl-DateTime-Precise on CentOS 7

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

sudo dnf remove perl-DateTime-Precise

References

Summary

In this tutorial we learn how to install perl-DateTime-Precise on CentOS 7 using yum and dnf.