How To Install perl-Schedule-Cron-Events on CentOS 7

In this tutorial we learn how to install perl-Schedule-Cron-Events on CentOS 7. perl-Schedule-Cron-Events is Take a line from a crontab and find out when events will occur

Introduction

In this tutorial we learn how to install perl-Schedule-Cron-Events on CentOS 7.

What is perl-Schedule-Cron-Events

Given a line from a crontab, tells you the time at which cron will next run the line, or when the last event occurred, relative to any date you choose. The object keeps that reference date internally, and updates it when you call nextEvent() or previousEvent() - such that successive calls will give you a sequence of events going forward, or backwards, in time.

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

Install perl-Schedule-Cron-Events 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-Schedule-Cron-Events using yum by running the following command:

sudo yum -y install perl-Schedule-Cron-Events

Install perl-Schedule-Cron-Events 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-Schedule-Cron-Events using dnf by running the following command:

sudo dnf -y install perl-Schedule-Cron-Events

How To Uninstall perl-Schedule-Cron-Events on CentOS 7

To uninstall only the perl-Schedule-Cron-Events package we can use the following command:

sudo dnf remove perl-Schedule-Cron-Events

References

Summary

In this tutorial we learn how to install perl-Schedule-Cron-Events on CentOS 7 using yum and dnf.