How To Install perl-DateTime-Set on CentOS 7

In this tutorial we learn how to install perl-DateTime-Set on CentOS 7. perl-DateTime-Set is Datetime sets and set math

Introduction

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

What is perl-DateTime-Set

DateTime handle two different types of sets. The first is a fixed set of predefined datetime objects. For example, if we wanted to create a set of datetimes containing the birthdays of people in our family. The second type of set that it can handle is one based on the idea of a recurrence, such as “every Wednesday”, or “noon on the 15th day of every month”. This type of set can have fixed starting and ending datetimes, but neither is required. So our “every Wednesday set” could be “every Wednesday from the beginning of time until the end of time”, or “every Wednesday after 2003-03-05 until the end of time”, or “every Wednesday between 2003-03-05 and 2004-01-07”.

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

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

sudo yum -y install perl-DateTime-Set

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

sudo dnf -y install perl-DateTime-Set

How To Uninstall perl-DateTime-Set on CentOS 7

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

sudo dnf remove perl-DateTime-Set

References

Summary

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