On Fri, Mar 08, 2013 at 05:25:53PM -0800, Jim Gibson wrote: > > So what's the best Perl module that recursively installs all > > prerequisites of a package for you, jsut supplying the > > desired package name for installation? > > The CPAN module is want you want. It installs the prerequisites > of a module. It comes with an executable ('cpan'). See 'perldoc > CPAN'.
App::cpanminus is often a more convenient module to use. The wrapper command is called 'cpanm' (versus 'cpan' for the CPAN module). CPAN will typically prompt you constantly to install each recursive dependency which gets old after about the 5th prompt, and will show you all of the output by default, which if successful usually doesn't matter to you. If all you want is for the modules to be installed then App::cpanminus does a much prettier, less interactive job of it, hiding the output by default, but storing it in a log file if you want to inspect it after (particularly if the modules you are installing could not be installed). I believe there is also an App::cpanplus that you can look into, which I assume is named that because its author felt it does more i.e., is more featureful. I haven't used the latter myself. Regards, -- Brandon McCaig <bamcc...@gmail.com> <bamcc...@castopulence.org> Castopulence Software <https://www.castopulence.org/> Blog <http://www.bamccaig.com/> perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }. q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.}; tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'
signature.asc
Description: Digital signature