How To Install perl-Schedule-Cron on CentOS 7

In this tutorial we learn how to install perl-Schedule-Cron on CentOS 7. perl-Schedule-Cron is Provides a simple but complete cron like scheduler

Introduction

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

What is perl-Schedule-Cron

This module provides a simple but complete cron like scheduler. I.e this modules can be used for periodically executing Perl subroutines. The dates and parameters for the subroutines to be called are specified with a format known as crontab entry (see man page crontab(5) or documentation of Schedule The philosophy behind Schedule subroutines periodically from within one single Perl program instead of letting cron trigger several (possibly different) Perl scripts. Everything under one roof. Furthermore Schedule dynamically, which isn’t that easy with cron. Schedule all extensions I’m aware of, i.e those of the so called “Vixie” cron) for crontab entries like ranges including ‘steps’, specification of month and days of the week by name or coexistence of lists and ranges in the same field. And even a bit more (like lists and ranges with symbolic names). This module is rather effective concerning system load. It calculates the execution dates in advance and will sleep until those dates are reached (and wont wake up every minute to check for execution like cron). However, it relies on the accuracy of your sleep() system call.

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

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

sudo yum -y install perl-Schedule-Cron

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

sudo dnf -y install perl-Schedule-Cron

How To Uninstall perl-Schedule-Cron on CentOS 7

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

sudo dnf remove perl-Schedule-Cron

References

Summary

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