CPANM is a handy little tool for quickly getting modules installed. It is a simplified version of CPAN. I like CPANM for quick tasks and it has become one of my main go to tools. I use CPAN, or manually building when I need to do unusual things or CPANM fails.
See the following for all the fun
For CentOS 6 and other similar RedHat/Yum systems
Example of use
To make /usr/local/bin one of your search directories (do this at your own risk)
See the following for all the fun
- http://search.cpan.org/~miyagawa/App-cpanminus-1.7001/bin/cpanm
For CentOS 6 and other similar RedHat/Yum systems
- yum install perl-devel
- yum install perl-CPAN
- curl -L http://cpanmin.us | perl - --sudo App::cpanminus
- Wait a few minutes as a lot is going on
Example of use
- sudo /usr/local/bin/cpanm CGI
To make /usr/local/bin one of your search directories (do this at your own risk)
- Edit ~root/.bash_profile (root is the typical CPANM user unless you install CPANM as a local user)
- Append the following to the end of the file or anywhere you like
- # Add local bin (mostly for CPANM)
PATH=$PATH:/usr/local/bin