How To Install perl-CPAN on Rocky Linux 8

In this tutorial we learn how to install perl-CPAN on Rocky Linux 8. perl-CPAN is Query, download and build perl modules from CPAN sites

Introduction

In this tutorial we learn how to install perl-CPAN on Rocky Linux 8.

What is perl-CPAN

The CPAN module automates or at least simplifies the make and install of perl modules and extensions. It includes some primitive searching capabilities and knows how to use LWP, HTTP external download clients to fetch distributions from the net.

We can use yum or dnf to install perl-CPAN on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-CPAN.

Install perl-CPAN on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-CPAN

Install perl-CPAN on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-CPAN

How To Uninstall perl-CPAN on Rocky Linux 8

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

sudo dnf remove perl-CPAN

perl-CPAN Package Contents on Rocky Linux 8

/usr/bin/cpan
/usr/bin/cpan-mirrors
/usr/share/doc/perl-CPAN
/usr/share/doc/perl-CPAN/Changes
/usr/share/doc/perl-CPAN/PAUSE2003.pub
/usr/share/doc/perl-CPAN/PAUSE2005.pub
/usr/share/doc/perl-CPAN/PAUSE2007.pub
/usr/share/doc/perl-CPAN/PAUSE2009.pub
/usr/share/doc/perl-CPAN/PAUSE2011.pub
/usr/share/doc/perl-CPAN/PAUSE2015.pub
/usr/share/doc/perl-CPAN/README
/usr/share/doc/perl-CPAN/Todo
/usr/share/man/man1/cpan-mirrors.1.gz
/usr/share/man/man1/cpan.1.gz
/usr/share/man/man3/App::Cpan.3pm.gz
/usr/share/man/man3/CPAN.3pm.gz
/usr/share/man/man3/CPAN::API::HOWTO.3pm.gz
/usr/share/man/man3/CPAN::Admin.3pm.gz
/usr/share/man/man3/CPAN::Debug.3pm.gz
/usr/share/man/man3/CPAN::Distroprefs.3pm.gz
/usr/share/man/man3/CPAN::FirstTime.3pm.gz
/usr/share/man/man3/CPAN::HandleConfig.3pm.gz
/usr/share/man/man3/CPAN::Kwalify.3pm.gz
/usr/share/man/man3/CPAN::Mirrors.3pm.gz
/usr/share/man/man3/CPAN::Nox.3pm.gz
/usr/share/man/man3/CPAN::Plugin.3pm.gz
/usr/share/man/man3/CPAN::Plugin::Specfile.3pm.gz
/usr/share/man/man3/CPAN::Queue.3pm.gz
/usr/share/man/man3/CPAN::Tarzip.3pm.gz
/usr/share/man/man3/CPAN::Version.3pm.gz
/usr/share/perl5/vendor_perl/App
/usr/share/perl5/vendor_perl/App/Cpan.pm
/usr/share/perl5/vendor_perl/CPAN
/usr/share/perl5/vendor_perl/CPAN.pm
/usr/share/perl5/vendor_perl/CPAN/API
/usr/share/perl5/vendor_perl/CPAN/API/HOWTO.pod
/usr/share/perl5/vendor_perl/CPAN/Admin.pm
/usr/share/perl5/vendor_perl/CPAN/Author.pm
/usr/share/perl5/vendor_perl/CPAN/Bundle.pm
/usr/share/perl5/vendor_perl/CPAN/CacheMgr.pm
/usr/share/perl5/vendor_perl/CPAN/Complete.pm
/usr/share/perl5/vendor_perl/CPAN/Debug.pm
/usr/share/perl5/vendor_perl/CPAN/DeferredCode.pm
/usr/share/perl5/vendor_perl/CPAN/Distribution.pm
/usr/share/perl5/vendor_perl/CPAN/Distroprefs.pm
/usr/share/perl5/vendor_perl/CPAN/Distrostatus.pm
/usr/share/perl5/vendor_perl/CPAN/Exception
/usr/share/perl5/vendor_perl/CPAN/Exception/RecursiveDependency.pm
/usr/share/perl5/vendor_perl/CPAN/Exception/blocked_urllist.pm
/usr/share/perl5/vendor_perl/CPAN/Exception/yaml_not_installed.pm
/usr/share/perl5/vendor_perl/CPAN/Exception/yaml_process_error.pm
/usr/share/perl5/vendor_perl/CPAN/FTP
/usr/share/perl5/vendor_perl/CPAN/FTP.pm
/usr/share/perl5/vendor_perl/CPAN/FTP/netrc.pm
/usr/share/perl5/vendor_perl/CPAN/FirstTime.pm
/usr/share/perl5/vendor_perl/CPAN/HTTP
/usr/share/perl5/vendor_perl/CPAN/HTTP/Client.pm
/usr/share/perl5/vendor_perl/CPAN/HTTP/Credentials.pm
/usr/share/perl5/vendor_perl/CPAN/HandleConfig.pm
/usr/share/perl5/vendor_perl/CPAN/Index.pm
/usr/share/perl5/vendor_perl/CPAN/InfoObj.pm
/usr/share/perl5/vendor_perl/CPAN/Kwalify
/usr/share/perl5/vendor_perl/CPAN/Kwalify.pm
/usr/share/perl5/vendor_perl/CPAN/Kwalify/distroprefs.dd
/usr/share/perl5/vendor_perl/CPAN/Kwalify/distroprefs.yml
/usr/share/perl5/vendor_perl/CPAN/LWP
/usr/share/perl5/vendor_perl/CPAN/LWP/UserAgent.pm
/usr/share/perl5/vendor_perl/CPAN/Mirrors.pm
/usr/share/perl5/vendor_perl/CPAN/Module.pm
/usr/share/perl5/vendor_perl/CPAN/Nox.pm
/usr/share/perl5/vendor_perl/CPAN/Plugin
/usr/share/perl5/vendor_perl/CPAN/Plugin.pm
/usr/share/perl5/vendor_perl/CPAN/Plugin/Specfile.pm
/usr/share/perl5/vendor_perl/CPAN/Prompt.pm
/usr/share/perl5/vendor_perl/CPAN/Queue.pm
/usr/share/perl5/vendor_perl/CPAN/Shell.pm
/usr/share/perl5/vendor_perl/CPAN/Tarzip.pm
/usr/share/perl5/vendor_perl/CPAN/URL.pm
/usr/share/perl5/vendor_perl/CPAN/Version.pm

References

Summary

In this tutorial we learn how to install perl-CPAN on Rocky Linux 8 using yum and dnf.