How To Install perl-App-cpanminus.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-App-cpanminus.noarch in Amazon Linux 2. perl-App-cpanminus.noarch is Get, unpack, build and install CPAN modules

Introduction

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

What is perl-App-cpanminus.noarch

Why? It’s dependency free, requires zero configuration, and stands alone but it’s maintainable and extensible with plug-ins and friendly to shell scripting. When running, it requires only 10 MB of RAM.

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

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

sudo yum -y install perl-App-cpanminus.noarch

How To Uninstall perl-App-cpanminus.noarch on Amazon Linux 2

To uninstall only the perl-App-cpanminus.noarch package we can use the following command:

sudo yum remove perl-App-cpanminus.noarch

perl-App-cpanminus.noarch Package Contents on Amazon Linux 2

/usr/bin/cpanm
/usr/share/doc/perl-App-cpanminus-1.6922
/usr/share/doc/perl-App-cpanminus-1.6922/Changes
/usr/share/doc/perl-App-cpanminus-1.6922/README
/usr/share/man/man1/cpanm.1.gz
/usr/share/man/man3/App::cpanminus.3pm.gz
/usr/share/perl5/vendor_perl/App
/usr/share/perl5/vendor_perl/App/cpanminus.pm

References

Summary

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