How to install perl package in Linux

Install perl module

If you are using Red Hat Linux then use up2date command to install most common modules:

# up2date module-name

Use following command to list all supported modules:
# up2date –showall | grep -i ‘perl’

OR use yum command under CentOS/RHEL 5/Fedora core:
# yum list available ‘perl’

If you are using Debian Linux, try to use apt-get command to install common perl module. However following is the recommended way to install a perl module.

A) Start CPAN Shell:
# perl -MCPAN -e shell

B) Install a perl module:
At cpan> shell prompt install module using install module::Name command. For example install module called MIME::Lite:
# cpan> install List::MoreUtils

Alternatively, try out the following command:
# cpan -i List::MoreUtils

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: