How To Install perl-Schedule-Cron on AlmaLinux 8

In this tutorial we learn how to install perl-Schedule-Cron in AlmaLinux 8. 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 AlmaLinux 8.

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 periodically from within one single Perl program instead of letting cron trigger several (possibly different) Perl scripts. Everything under one roof. Furthermore Schedule create crontab entries dynamically, which isn’t that easy with cron. Schedule 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 AlmaLinux 8. 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 AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Schedule-Cron using dnf by running the following command:

sudo dnf -y install perl-Schedule-Cron

Install perl-Schedule-Cron on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Schedule-Cron using yum by running the following command:

sudo yum -y install perl-Schedule-Cron

How To Uninstall perl-Schedule-Cron on AlmaLinux 8

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 AlmaLinux 8 using yum and dnf.