Perl install module from CPAN

Posted by – July 20, 2011

For example:

perl -MCPAN -e ‘install File::List’
Or:
1. perl -MCPAN -e  shell # to enter into perl install module command line
2. Enter:
install File::List

[jin@jinlab]$ sudo perl -MCPAN -e shell

[jin@jinlab]$ sudo perl -MCPAN -e shellTerminal does not support AddHistory.

cpan shell — CPAN exploration and modules installation (v1.7601)ReadLine support available (try ‘install Bundle::CPAN’)
cpan>

1 Comment on Perl install module from CPAN

  1. mosjin says:

    Sometimes we need install dependences under untared source dir as below:

    perl Build installdeps

Leave a Reply