Canfield Research Group LLC
  • Home
  • Jobs
  • Blogs
    • Company
    • On Error Do
  • Contact Us
  • Projects
    • Astronomy
  • Privacy Policy

Install CPANMinus in CentOS 6 (aka CPANM)

2/23/2014

2 Comments

 
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
  • 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


2 Comments
Ken Williams
8/10/2015 01:51:55 am

You're linking to a specific version of `cpanm`, it would be better to use the URL http://search.cpan.org/~miyagawa/App-cpanminus/bin/cpanm .

Reply
Scarlett H link
12/21/2020 09:40:34 am

Great reading your bllog post

Reply



Leave a Reply.

    On Error Do

    A blog in question/answer and problem/solution format.

    Author

    Robb Canfield, CEO of Canfield Research Group.

    Archives

    February 2014
    November 2008

    Categories

    All
    Archives
    Linux
    Perl

    RSS Feed


Copyright 2018 by Canfield Research Group LLC