How To Install perl-Time-Piece.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install perl-Time-Piece.x86_64
on Amazon Linux 2.
What is perl-Time-Piece.x86_64
The Time functions 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
to install perl-Time-Piece.x86_64
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Time-Piece.x86_64.
Install perl-Time-Piece.x86_64 on Amazon Linux 2 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.x86_64
using yum
by running the following command:
sudo yum -y install perl-Time-Piece.x86_64
How To Uninstall perl-Time-Piece.x86_64 on Amazon Linux 2
To uninstall only the perl-Time-Piece.x86_64
package we can use the following command:
sudo yum remove perl-Time-Piece.x86_64
perl-Time-Piece.x86_64 Package Contents on Amazon Linux 2
/usr/lib64/perl5/Time/Piece.pm
/usr/lib64/perl5/Time/Seconds.pm
/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.x86_64
on Amazon Linux 2 using yum.