How To Install perl-Sub-Install.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-Sub-Install.noarch in Amazon Linux 2. perl-Sub-Install.noarch is Install subroutines into packages easily

Introduction

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

What is perl-Sub-Install.noarch

This module makes it easy to install subroutines into packages without the unslightly mess of no strict or typeglobs lying about where just anyone can see them.

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

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

sudo yum -y install perl-Sub-Install.noarch

How To Uninstall perl-Sub-Install.noarch on Amazon Linux 2

To uninstall only the perl-Sub-Install.noarch package we can use the following command:

sudo yum remove perl-Sub-Install.noarch

perl-Sub-Install.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-Sub-Install-0.926
/usr/share/doc/perl-Sub-Install-0.926/Changes
/usr/share/doc/perl-Sub-Install-0.926/LICENSE
/usr/share/doc/perl-Sub-Install-0.926/README
/usr/share/man/man3/Sub::Install.3pm.gz
/usr/share/perl5/vendor_perl/Sub
/usr/share/perl5/vendor_perl/Sub/Install.pm

References

Summary

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