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
Last revisionBoth sides next revision
install_configure_cpan [2008/08/07 10:12] juckinsinstall_configure_cpan [2022/09/29 14:16] 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). 
 + 
 +As root: 
 + 
 +  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>
-# cpan install Date::Manip+# cpan 
 +cpan> install CPAN 
 +cpan> reload cpan 
 +cpan> exit
 </code> </code>
 +
 +Uninstalling a module:
 +
 +[[http://search.cpan.org/~xaicron/App-pmuninstall/]]
 +
install_configure_cpan.txt · Last modified: 2022/09/29 14:17 by juckins