[CentOS] scripting CPAN installs
davorg at gmail.com
Fri Apr 23 09:39:43 UTC 2010
On 15 April 2010 21:23, Alan McKay <alan.mckay at gmail.com> wrote:
> Hey folks,
> Maybe there is a Perl/CPAN list that is a better place to ask this?
> If so, maybe someone can point me to it.
> Anyway, I want to be able to script the installation of a bunch of
> CPAN modules, and the first basic problem I am coming up against is
> that the "cpan" command seems to always return 0 regardless of whether
> or not the install completed.
I don't know if this will solve your problem, but I'm surprised to
hear about people still using the cpan command-line program. The
CPANPLUS module has been included with Perl for several years and I
recommend investigating its cpanp command-line program instead of
And if you want something even more up to date, you can look at
cpanminus - which is packaged as perl-App-cpanminus at my CPAN/RPM
Finally, can I repeat the advice that other people have hinted at.
Mixing CPAN-installed modules and RPM-installed modules in a single
Centos installation is a really bad idea. I highly recommend using
only RPM-packaged modules (and learning to build your own for ones
that you can't find elsewhere).
More information about the CentOS