Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


perl_install_configure_cpan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
perl_install_configure_cpan [2025/03/20 19:33] – removed - external edit (Unknown date) 127.0.0.1perl_install_configure_cpan [2025/03/20 19:33] (current) – ↷ Page name changed from install_configure_cpan to perl_install_configure_cpan juckins
Line 1: Line 1:
 +==== CPAN (Perl) Repository Tips ====
 +
 +It seems the "cpanm" command is the best option to manage installing/removing needed perl modules if they are not available in an RPM format for the operating system (EPEL, etc).
 +
 +  dnf install perl-App-cpanminus
 +  
 +As root, to install:
 +  cpanm -i Array::Diff
 +  
 +As root, to remove:
 +  cpanm -U Array::Diff
 +
 +
 +__Older notes:__
 +
 +First make sure CPAN or CPANPLUS is installed using yum.
 +
 +Installing a module:
 +
 +<code>
 +# cpan
 +cpan> install Net::SFTP
 +</code>
 +
 +Updating the currently installed version of CPAN:
 +<code>
 +# cpan
 +cpan> install CPAN
 +cpan> reload cpan
 +cpan> exit
 +</code>
 +
 +Uninstalling a module:
 +
 +[[http://search.cpan.org/~xaicron/App-pmuninstall/]]