Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


install_configure_cpan

Differences

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

Link to this comparison view

Next revision
Previous revision
install_configure_cpan [2008/08/07 10:03] – created juckinsinstall_configure_cpan [2022/09/29 14:17] (current) juckins
Line 1: Line 1:
-Installing CPAN:+==== 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> <code>
-perl -MCPAN -e shell+# cpan 
 +cpan> install Net::SFTP
 </code> </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/]]
  
install_configure_cpan.1218117834.txt.gz · Last modified: 2008/08/07 10:03 by juckins