How To Install Perl Modules With CPAN? – POFTUT

How To Install Perl Modules With CPAN?

Perl is a old and popular scripting language. Todays Python is preferred over Perl but there are a lot of useful tools   used already by system administrators. There are generally problem of dependency for Perl scripts. Here we will look how to install required Perl modules in to Linux.

Install Via CPAN

CPAN is very good solution to install modules. It resolves and install dependencies easily. CPAN is very easy  to use versus installing modules manually.

CentOS, Fedora

Ubuntu, Debian

Install Via CPAN

Install Via CPAN

Install MIME

Now we will install MIME::Lite package from CPAN repositories

Install MIME

Install MIME

Install Perl Modules With CPAN From Bash

We can run installation process without entering CPAN shell like below.

-i parameter simple provides install command like in CPAN shell.

LEARN MORE  "Perl warning Setting locale failed" Error and Solution In Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)