How To Install perl-Time-Local on AlmaLinux 8

In this tutorial we learn how to install perl-Time-Local in AlmaLinux 8. perl-Time-Local is Efficiently compute time from local and GMT time

Introduction

In this tutorial we learn how to install perl-Time-Local on AlmaLinux 8.

What is perl-Time-Local

This module provides functions that are the inverse of built-in perl functions localtime() and gmtime(). They accept a date as a six-element array, and return the corresponding time(2) value in seconds since the system epoch (Midnight, January 1, 1970 GMT on Unix, for example). This value can be positive or negative, though POSIX only requires support for positive values, so dates before the system’s epoch may not work on all operating systems.

We can use yum or dnf to install perl-Time-Local on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Time-Local.

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

sudo dnf -y install perl-Time-Local

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

sudo yum -y install perl-Time-Local

How To Uninstall perl-Time-Local on AlmaLinux 8

To uninstall only the perl-Time-Local package we can use the following command:

sudo dnf remove perl-Time-Local

References

Summary

In this tutorial we learn how to install perl-Time-Local on AlmaLinux 8 using yum and dnf.