How To Install perl-version on CentOS 7

In this tutorial we learn how to install perl-version on CentOS 7. perl-version is Perl extension for Version Objects

Introduction

In this tutorial we learn how to install perl-version on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-version.

Install perl-version on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install perl-version

Install perl-version on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install perl-version

How To Uninstall perl-version on CentOS 7

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

sudo dnf remove perl-version

References

Summary

In this tutorial we learn how to install perl-version on CentOS 7 using yum and dnf.