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 [2012/09/11 23:01] 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 24: Line 31:
 </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.1347418882.txt.gz · Last modified: 2012/09/11 23:01 by juckins