How To Install perl-Date-ISO8601 on CentOS 7

In this tutorial we learn how to install perl-Date-ISO8601 on CentOS 7. perl-Date-ISO8601 is Three ISO 8601 numerical calendars

Introduction

In this tutorial we learn how to install perl-Date-ISO8601 on CentOS 7.

What is perl-Date-ISO8601

The international standard ISO 8601 “Data elements and interchange formats - Information interchange - Representation of dates and times” defines three distinct calendars by which days can be labeled. It also defines textual formats for the representation of dates in these calendars. This module provides functions to convert dates between these three calendars and Chronological Julian Day Numbers, which is a suitable format to do arithmetic with. It also supplies functions that describe the shape of these calendars, to assist in calendrical calculations. It also supplies functions to represent dates textually in the ISO 8601 formats. ISO 8601 also covers time of day and time periods, but this module does nothing relating to those parts of the standard; this is only about labeling days.

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

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

sudo yum -y install perl-Date-ISO8601

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

sudo dnf -y install perl-Date-ISO8601

How To Uninstall perl-Date-ISO8601 on CentOS 7

To uninstall only the perl-Date-ISO8601 package we can use the following command:

sudo dnf remove perl-Date-ISO8601

References

Summary

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