How To Install perl-Time-Piece on Fedora 36

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

Introduction

In this tutorial we learn how to install perl-Time-Piece on Fedora 36.

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 Fedora 36. 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 Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove perl-Time-Piece

perl-Time-Piece Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/fb332b687e01c5a5c5857876273471e8732397
/usr/lib64/perl5/Time
/usr/lib64/perl5/Time/Piece.pm
/usr/lib64/perl5/Time/Seconds.pm
/usr/lib64/perl5/auto/Time
/usr/lib64/perl5/auto/Time/Piece
/usr/lib64/perl5/auto/Time/Piece/Piece.so
/usr/share/man/man3/Time::Piece.3pm.gz
/usr/share/man/man3/Time::Seconds.3pm.gz

References

Summary

In this tutorial we learn how to install perl-Time-Piece on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).