How To Install perl-App-cpanminus on CentOS 7

In this tutorial we learn how to install perl-App-cpanminus on CentOS 7. perl-App-cpanminus is Get, unpack, build and install CPAN modules

Introduction

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

What is perl-App-cpanminus

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

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

sudo yum -y install perl-App-cpanminus

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

sudo dnf -y install perl-App-cpanminus

How To Uninstall perl-App-cpanminus on CentOS 7

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

sudo dnf remove perl-App-cpanminus

References

Summary

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