in reply to Maintaining a Perl Installation
Figure out all the non-core modules you need by parsing all your scripts, who cares what .pm files are actually installed..you just care about the ones being used. Then download the .ppd and .tar.gz files for each module from the appropriate site(s).
After that write a script to automate the installation of all those modules. You'll need to modify the path within the .ppd file to match that of the locally installed/copied .tar.gz files.
ActivePerl is pretty simple to install silently, check the docs for exact syntax/options. In the environment I work we use SMS(ugh), so I have an SMS issuance that installs perl itself and then runs my script to install the extra modules. I do something like this to install Perl itself:
and my install script for the modules that runs after perl itself is installed is like this :msiexec.exe /I blah.msi TARGETDIR=D:\PERL AddPerlToPath=NO /q
use PPM; .... # array of fully qualified path to each .ppd file for ( @modules_to_install ) { print "Attempting to install $_\n"; if( PPM::InstallPackage("package" => $_) ) { print "Successfully installed $_\n"; } else { print "Failed to install $_\n"; $errors++; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Maintaining a Perl Installation
by PodMaster (Abbot) on May 07, 2003 at 08:16 UTC |