Linux security

How to install PERL modules with yum or CPAN on Linux

Many [easyazon_link asin=”B00GVCEXI6″ locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] Perl [/easyazon_link]modules are available via repositories on [easyazon_link asin=”0071765654″ locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] Red Hat Linux [/easyazon_link] server or [easyazon_link asin=”1783985925″ locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] CentOS [/easyazon_link] Linux servers, the name the modules have in the repository differ from the name of the module itself.

There are few ways how you can install [easyazon_link asin=”1449303587″ locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] Perl [/easyazon_link] modules on Linux machines, to use yum to install a [easyazon_link asin=”0596004923″ locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] Perl [/easyazon_link] module using the module name, just place ‘”perl()”‘ around the name of the module (double quotes included) when giving it as an argument to yum.

For example, to install the ‘Net::Telnet’ module, you would run ‘yum install:

su
yum install “perl(Net::Telnet)" -y

Other option to install Perl modules is to use CPAN

su
perl -MCPAN -e shell
cpan> install Net::Telnet

As you can see two different ways to install [easyazon_link asin=”0672327937″ locale=”US” new_window=”default” nofollow=”default” tag=”wn0d5-20″ add_to_cart=”default” cloaking=”default” localization=”default” popups=”default”] Perl [/easyazon_link] modules – same result 🙂

[easyazon_block add_to_cart=”default” align=”left” asin=”059600639X” cloaking=”default” layout=”right” localization=”default” locale=”US” nofollow=”default” new_window=”default” tag=”wn0d5-20″]

Leave a Reply