Ask a Question related to PERL Modules, Design and Development.
-
Jim Ford #1
Updating installed modules?
Is there a way to update installed modules? Cpan only seems to offer
checking for updates and then manually reinstalling.
Jim Ford
Jim Ford Guest
-
From 5.6.1 to 5.8.2: how preserve installed modules?
Hi, I'm considering upgrading from ActiveState Perl 5.6.1 to 5.8.2 (in order to use the latest Apache and mod_perl, although that's kind of beside... -
Who can I tell what perl modules I have installed ?
Is there an easy way to list out all the perl modules I have installed ? I can list out everything in /usr/lib/perl/ but i figure there must be a... -
list installed modules
Hi, Is there a command that list all the installed modules on a system .... Thanks Olivier -
Updating a installed ASP.NET app
What is a good practise to use for updating my asp.net applications. As a example: I create a installation package using the tools built into... -
[Q] all installed modules
Does anyone know how to get a list of all intelled modules that are available to be USEd? I work with a provider and would like to know this info.... -
Andy Hassall #2
Re: Updating installed modules?
On Fri, 23 Jun 2006 07:36:45 GMT, Jim Ford <jaford@watford53.freeserve.co.uk>
wrote:
[url]http://search.cpan.org/~andk/CPAN-1.87/lib/CPAN.pm#Programmer%27s_interface[/url]>Is there a way to update installed modules? Cpan only seems to offer
>checking for updates and then manually reinstalling.
perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
--
Andy Hassall :: [email]andy@andyh.co.uk[/email] :: [url]http://www.andyh.co.uk[/url]
[url]http://www.andyhsoftware.co.uk/space[/url] :: disk and FTP usage analysis tool
Andy Hassall Guest
-
Jim Ford #3
Re: Updating installed modules?
Andy Hassall wrote:
Thanks - it did the trick. Is there a 'flag' I can use to accept all the> On Fri, 23 Jun 2006 07:36:45 GMT, Jim Ford <jaford@watford53.freeserve.co.uk>
> wrote:
>
>>>>Is there a way to update installed modules? Cpan only seems to offer
>>checking for updates and then manually reinstalling.
>
> [url]http://search.cpan.org/~andk/CPAN-1.87/lib/CPAN.pm#Programmer%27s_interface[/url]
>
> perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'
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.
Jim Ford
Jim Ford Guest
-
Andy Hassall #4
Re: Updating installed modules?
On Wed, 28 Jun 2006 09:25:57 GMT, Jim Ford <jaford@watford53.freeserve.co.uk>
wrote:
There's inactivity_timeout, although this cancels installation if it's waiting>Andy Hassall wrote:>>> On Fri, 23 Jun 2006 07:36:45 GMT, Jim Ford <jaford@watford53.freeserve.co.uk>
>> wrote:
>>>>>>>Is there a way to update installed modules? Cpan only seems to offer
>>>checking for updates and then manually reinstalling.
>> [url]http://search.cpan.org/~andk/CPAN-1.87/lib/CPAN.pm#Programmer%27s_interface[/url]
>>
>> 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.
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 :: [email]andy@andyh.co.uk[/email] :: [url]http://www.andyh.co.uk[/url]
[url]http://www.andyhsoftware.co.uk/space[/url] :: disk and FTP usage analysis tool
Andy Hassall Guest
-
Steffen Netz #5
Re: Updating installed modules?
Andy Hassall wrote:
Hi,>> >Andy Hassall wrote:> >> >> On Fri, 23 Jun 2006 07:36:45 GMT, Jim Ford <jaford@watford53.freeserve.co.uk>
> >> wrote:
> >>
> >>>Is there a way to update installed modules? Cpan only seems to offer
> >>>checking for updates and then manually reinstalling.
> >>
> >> [url]http://search.cpan.org/~andk/CPAN-1.87/lib/CPAN.pm#Programmer%27s_interface[/url]
> >>
> >> 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.
>
I had have a similar question not long ago.
I think there are some questions:
- interactive installation ( see OP)
- Wrong Version-Numbers ( I had some with GD Package says locally
1.0 everytime)
- Depencies :
Template::Stash::XS object version 2.15 does not match bootstrap
parameter 2.14
at /sw/opensrc/lib/perl5/5.8.3/sun4-solaris/DynaLoader.pm line 249.
- ???
Could there be a general solution?
My solution so far:
use CPANPLUS::Backend;
my $cb = CPANPLUS::Backend->new( );
my @modules = $cb->installed();
foreach $mod (@modules) {
if ( !$mod->is_uptodate() && !$mod->package_is_perl_core()) {
print "Update :" , $mod->name(), "\t" , $mod->installed_version() ,"-" , $mod->version() ,"\n";
$mod->install();
}
}
regards,
Steffen
Steffen Netz Guest



Reply With Quote

