Re: Updating installed modules?



On Wed, 28 Jun 2006 09:25:57 GMT, Jim Ford <jaford@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:

Andy Hassall wrote:
On Fri, 23 Jun 2006 07:36:45 GMT, Jim Ford <jaford@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:

Is there a way to update installed modules? Cpan only seems to offer
checking for updates and then manually reinstalling.

http://search.cpan.org/~andk/CPAN-1.87/lib/CPAN.pm#Programmer%27s_interface

perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'

Thanks - it did the trick. Is there a 'flag' I can use to accept all the
default 'yesess and nos'? I had a lot of moldules that needed updating
and I had to keep checking to see if a response was required from me.

There's inactivity_timeout, although this cancels installation if it's waiting
for input, so that's not really what you want.

I can't remember off the top of my head whether it accepts defaults, cancels,
or hangs when the process doesn't have a terminal, e.g. it's being run under
cron.

--
Andy Hassall :: andy@xxxxxxxxxxx :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.