in reply to Repeated offline installs of same CPAN modules

Another possibility would be to figure out what files the module installs and wrap those up using whatever package management system your flavour of Linux uses (RPM, dpkg, etc.). Then you just rpm -Uvh Local-P5-Foo-1.2.3.i386.rpm on all the machines (or throw it into your kickstart configuration, or whatever the Debian analogue to that is).

  • Comment on Re: Repeated offline installs of same CPAN modules

Replies are listed 'Best First'.
Re^2: Repeated offline installs of same CPAN modules
by carcassonne (Pilgrim) on Mar 01, 2006 at 21:17 UTC
    Yes, the low-down solution is to identify all the required files, pack them, and unfold on same-architecture target systems. If there's nothing else, I'll go that way.

    But by asking I was hoping that someone would suggest something like a 'Presto-Installer 0.78' or somesuch that would simply take the indivual CPAN archived modules, and make them.

    After all, a bash script can do that.

      I was hoping that someone would suggest something like a 'Presto-Installer

      I asked this before, and I still resort to the manual method. Why? Before I like to keep all my downloaded modules in the same directory, so I can scan their names when searching for them. Whereas most cpan modules want a repository style tree, where the modules are buried in those alphabetical named directories. It was still easy, because Perl dosn't need you to "make clean" before rebuilding. So when I needed to rebuild my modules for a recent upgrade to 5.8.8, all I needed to do was (in Midnight Commander) start at the top of modules directory,and as root, enter the individual modules directory, and do "perl Makfile.PL", followed by "make install". I could march thru 100 modules in about 30 minutes. Now this could easily be scripted. The only problem would be when a module needs a pre-requisite module, and issues an error. So you need to do it attended. But I found that most of the time, you can install the pre-requisite later, as long as it is in your list, so you can ignore them and install anyways.


      I'm not really a human, but I play one on earth. flash japh