CPAN Shell PDF Print E-mail

A quick way to install Perl modules is by using the CPAN shell.  I recently needed to force an installation and it took some looking to find how to best accomplish it.

 

To install a module with the CPAN shell (for example; the SSH module I needed):

 

% perl -MCPAN -e  'install Net::SSH::Perl'

When a required module installation hung during the "make test' phase, I needed to force installation without 'make test' succeeding:

% perl -MCPAN -e CPAN::Shell->force(qw(install Net::SSH::Perl));

This time when the test hung, I used CTRL + C to crash out, at which point the installation continued.

 
Joomla SEF URLs by Artio
 
JOOMLA TEMPLATES Joomla Templates By JoomlaBear