How To Install CPANM in CentOS Linux

The easiest way to install Perl CPAN packages without the hassles of answering "yes" or "no" questions is to use the cpanm script developed by Tatsuhiko Miyagawa.

Installing Perl CPANM program

Run the following command and it will install itself for you. You might want to run it as a root with sudo if you want to install to places like /usr/local/bin.

# curl -L | perl - --self-upgrade

If you don't have curl but wget, replace `curl -L` with `wget -O -`.

For more details about this program, visit

How To Use CPANM

CPANM is very easy to use, just run the following:

# cpanm <Package Name>

For example, you want to install Perl Catalyst::Engine::Apache package just run this command and all required dependencies will be installed automatically for you:

# cpanm Catalyst::Engine::Apache

is that so? care to

is that so?
care to explain?
i'd be curious!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Enter the characters shown in the image.