in reply to Programmatically installing modules

> if I run it with a module I already have it updates it (so I need to check first)

from cpan

-D module [ module ... ] Show the module details. This prints one line for each out- +of-date module (meaning, modules locally installed but have newer v +ersions on CPAN). Each line has three columns: module name, local +version, and CPAN version.

since cpan.pl is a wrapper around CPAN.pm it should be possible to automatize this (at least).

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^2: Programmatically installing modules
by morgon (Priest) on Dec 23, 2013 at 10:38 UTC
    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.

      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.