How To Install perl-Test-HasVersion.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-Test-HasVersion.noarch in Amazon Linux 2. perl-Test-HasVersion.noarch is Check Perl modules have version numbers

Introduction

In this tutorial we learn how to install perl-Test-HasVersion.noarch on Amazon Linux 2.

What is perl-Test-HasVersion.noarch

Do you wanna check that every one of your Perl modules in a distribution has a version number? You wanna make sure you don’t forget the brand new modules you just added? Well, that’s the module you have been looking for. Use it!

We can use yum to install perl-Test-HasVersion.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-HasVersion.noarch.

Install perl-Test-HasVersion.noarch 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-Test-HasVersion.noarch using yum by running the following command:

sudo yum -y install perl-Test-HasVersion.noarch

How To Uninstall perl-Test-HasVersion.noarch on Amazon Linux 2

To uninstall only the perl-Test-HasVersion.noarch package we can use the following command:

sudo yum remove perl-Test-HasVersion.noarch

perl-Test-HasVersion.noarch Package Contents on Amazon Linux 2

/usr/bin/test_version
/usr/share/doc/perl-Test-HasVersion-0.012
/usr/share/doc/perl-Test-HasVersion-0.012/Changes
/usr/share/doc/perl-Test-HasVersion-0.012/README
/usr/share/man/man3/Test::HasVersion.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/HasVersion.pm

References

Summary

In this tutorial we learn how to install perl-Test-HasVersion.noarch on Amazon Linux 2 using yum.