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

Both sides previous revisionPrevious revision
Next revision
Previous revision
install_configure_cpan [2009/08/21 15:13] juckinsinstall_configure_cpan [2022/09/29 14:17] (current) juckins
Line 1: Line 1:
-Installing CPAN:+==== CPAN (Perl) Repository Tips ====
  
-First make sure ncftp is installed.+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).
  
-<code> +  dnf install perl-App-cpanminus 
-# rpm -ivh ncftp-3.1.9-1.i386.rpm +   
-# perl -MCPAN -e shell +As root, to install: 
-</code>+  cpanm -i Array::Diff 
 +   
 +As root, to remove: 
 +  cpanm -U Array::Diff
  
-Then you can install a module:+ 
 +__Older notes:__ 
 + 
 +First make sure CPAN or CPANPLUS is installed using yum. 
 + 
 +Installing a module:
  
 <code> <code>
-# export FTP_PASSIVE=1 +# cpan 
-# cpan install Date::Manip (or cpan Date::Manip) +cpaninstall Net::SFTP
-cpan install Bundle::CPAN // (or cpan Bundle::CPAN)+
 </code> </code>
  
Line 23: Line 30:
 cpan> exit cpan> exit
 </code> </code>
 +
 +Uninstalling a module:
 +
 +[[http://search.cpan.org/~xaicron/App-pmuninstall/]]
 +
install_configure_cpan.1250882026.txt.gz · Last modified: 2009/08/21 15:13 by juckins