How To Install perl-version on Rocky Linux 8

In this tutorial we learn how to install perl-version on Rocky Linux 8. perl-version is Perl extension for Version Objects

Introduction

In this tutorial we learn how to install perl-version on Rocky Linux 8.

What is perl-version

Version objects were added to Perl in 5.10. This module implements version objects for older version of Perl and provides the version object API for all versions of Perl. All previous releases before 0.74 are deprecated and should not be used due to incompatible API changes. Version 0.77 introduces the new ‘parse’ and ‘declare’ methods to standardize usage. You are strongly urged to set 0.77 as a minimum in your code.

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

Install perl-version on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-version

Install perl-version on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-version

How To Uninstall perl-version on Rocky Linux 8

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

sudo dnf remove perl-version

perl-version Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/66
/usr/lib/.build-id/66/d12932e1e8edc4080203e43008e51eb85a19cb
/usr/lib64/perl5/vendor_perl/auto/version
/usr/lib64/perl5/vendor_perl/auto/version/vxs
/usr/lib64/perl5/vendor_perl/auto/version/vxs/vxs.so
/usr/lib64/perl5/vendor_perl/version
/usr/lib64/perl5/vendor_perl/version.pm
/usr/lib64/perl5/vendor_perl/version.pod
/usr/lib64/perl5/vendor_perl/version/Internals.pod
/usr/lib64/perl5/vendor_perl/version/regex.pm
/usr/lib64/perl5/vendor_perl/version/vpp.pm
/usr/lib64/perl5/vendor_perl/version/vxs.pm
/usr/share/doc/perl-version
/usr/share/doc/perl-version/CHANGES
/usr/share/doc/perl-version/README
/usr/share/man/man3/version.3pm.gz
/usr/share/man/man3/version::Internals.3pm.gz

References

Summary

In this tutorial we learn how to install perl-version on Rocky Linux 8 using yum and dnf.