Help me obi-wan kenobi, you're my only hope! I've asked this question on the CentOS list, on the cpan-discuss list, and on other various lists and I have still to come up with a reasonable way to do this.

I'm an all Centos shop, with CentOS 5.2 and 5.4 in production. No, I cannot easily update the 5.2 machines to 5.4. Also, I've got some 32 bit and some 64 bit installations of each.

The basic problem is this : how to keep numerous machines with the same CPAN installation? i.e. same modules installed across all boxes. Seems like a simple thing to ask for, but something that CPAN just is not designed to do very well from what I can find.

I've tried autobundle, and then applying the bundle, but you end up going through 10s of minutes of the whole build process answering questions and so forth, as there does not seem to be a way to tell CPAN to just use all the defaults.

Someone on the CentOS list pointed me at this article http://www.developertutorials.com/tutorials/cgi-perl/automate-perl-module-deployment-050426/page1.html

which looked good at first, but ends up being a little too simplistic. I like the idea that you do it in several phases and break down the build process into its steps - do the "perl Makefile.PL" once, where you answer all the questions - then on each host go through and do the "make", "make install" and so forth. But this does not explain how I am supposed to deal with modules that want to install other modules and so forth, and I'm not savvy enough to figure it out myself.

I see from cpan-discuss archives someone talking about http://perl.arix.com/cpan2rpm/ which appears to have promise as well. But I tried it out with no luck.

My other option is of course to go through my list of CPAN modules (about 170) and see if there are appropriate RPMs for them all at rpmforge or one of those places, and switch over to use those. From what I can see so far, yum/RPM is just a better way to do this as it was designed with this in mind. It is really easy to install what you need in an automated fashion without having to babysit the process for 10s of minutes.

I've also been told "use CPAN Plus", but while I did manage to get that installed, it is not readily evident how it is supposed to help with my problem. Can someone recommend some reading to that end?

What I've basically decided at this point is that I should probably just maintain a 32 bit install in one central location, and a 64 bit as well, then rsync it out to all the other machines. So install once - answering all the questions - the rsync out. Anything wrong with this idea?

What are you all doing for this?


In reply to managing cpan across machines by bushidoka

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.