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 [2008/08/07 10:21] 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). 
 + 
 +  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>
-rpm -ivh ncftp-3.1.9-1.i386.rpm +cpan 
-# perl -MCPAN -e shell+cpan> install Net::SFTP
 </code> </code>
  
-Then you can install a module: +Updating the currently installed version of CPAN:
 <code> <code>
-export FTP_PASSIVE=1 +cpan 
-cpan install Date::Manip+cpaninstall CPAN 
 +cpan> reload cpan 
 +cpan> exit
 </code> </code>
 +
 +Uninstalling a module:
 +
 +[[http://search.cpan.org/~xaicron/App-pmuninstall/]]
 +
install_configure_cpan.1218118900.txt.gz · Last modified: 2008/08/07 10:21 by juckins