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 [2012/09/11 23:01] 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).
  
-<code> +As root:
-# rpm -ivh ncftp-3.1.9-1.i386.rpm +
-# perl -MCPAN -e shell +
-</code>+
  
-Then you can install a module:+  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>
-# 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 24: Line 33:
 </code> </code>
  
-No easy way to uninstall perl module, but here are two possible links:+Uninstalling a module:
  
-[[http://stackoverflow.com/questions/2626449/how-can-i-de-install-a-perl-module-installed-via-cpan]]+[[http://search.cpan.org/~xaicron/App-pmuninstall/]]
  
-[[http://search.cpan.org/~xaicron/App-pmuninstall-0.29/bin/pm-uninstall]] 
install_configure_cpan.txt · Last modified: 2022/09/29 14:17 by juckins