How To Install perl-Time-Piece on AlmaLinux 8

In this tutorial we learn how to install perl-Time-Piece in AlmaLinux 8. perl-Time-Piece is Time objects from localtime and gmtime

Introduction

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

What is perl-Time-Piece

The Time with implementations that return objects. It does so in a backwards compatible manner, so that using localtime or gmtime as documented in perlfunc still behave as expected.

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

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

sudo dnf -y install perl-Time-Piece

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

sudo yum -y install perl-Time-Piece

How To Uninstall perl-Time-Piece on AlmaLinux 8

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

sudo dnf remove perl-Time-Piece

References

Summary

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