Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Programmatically installing modules

by morgon (Deacon)
on Dec 23, 2013 at 10:38 UTC ( #1068168=note: print w/ replies, xml ) Need Help??


in reply to Re: Programmatically installing modules
in thread Programmatically installing modules

I already check for the availability of the module (via a require) before I try to install.

My main problem at the moment is making the installation non-interactive.


Comment on Re^2: Programmatically installing modules
Re^3: Programmatically installing modules
by LanX (Canon) on Dec 23, 2013 at 10:41 UTC
    I thought you wanted to avoid automatic updates?

    Cheers Rolf

    ( addicted to the Perl Programming Language)

      Yes that is why I do a require first and only when that fails I do the install.

      So when I have the module the require succeeds and I do not run the install.

        And how do you check if the already installed module has the correct version? :)

        sudo cpan -D List::Util CPAN: Storable loaded ok (v2.21) Going to read '/home/lanx/.cpan/Metadata' Database was generated on Wed, 18 Dec 2013 18:41:02 GMT List::Util ---------------------------------------------------------------------- +--- List utilities (eg min, max, reduce) P/PE/PEVANS/Scalar-List-Utils-1.35.tar.gz /usr/local/lib/perl/5.10.0/List/Util.pm Installed: 1.22 CPAN: 1.35 Not up to date Graham Barr (GBARR) gbarr@pobox.com

        Cheers Rolf

        ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1068168]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-11-23 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (127 votes), past polls