Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 91182
Status: open
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: yaberger [...] ca.ibm.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Update all outdated perl modules with cpanp?
Date: Wed, 4 Dec 2013 14:04:40 -0500
To: bug-cpanplus [...] rt.cpan.org
From: yaberger [...] ca.ibm.com
Hi, I'm trying to update all outdated modules on a fresh install of Perl 5.18.1 cpanp 'o' list around 80 outdated modules so updating them one by one is time consuming. I'm wondering if there is a method to update them all in one command. I've found an old thread mentionning that you could run: cpanp 'i 1..78' if there is 78 outdated modules but it doesn't seem to work. Is there any other way with cpanp? If not, do you believe it could be added on an enhanced request list? Best regards, Yannick Bergeron Advisory IT Specialist
On 2013-12-04 12:23:03, ETHER wrote: Show quoted text
But if you've got a fresh perl, you should have an empty PERL5LIB anyway, so just install what you need (there will be nothing "outdated"? If you're reusing install directories across multiple Perl installs you're just asking for trouble, as there will be binary incompatibilities. PS. 5.18.2 will be out next week, so you might want to hold out for that.
Within the cpanp shell one can do 'o' followed by 'i *' Alternatively, I knocked up a little script to do the same thing: https://github.com/bingos/throwaway/blob/master/cpupdate.pl 'perl cpupdate.pl'
Subject: [rt.cpan.org #91182] Update all outdated perl modules with cpanp?
Date: Tue, 10 Dec 2013 09:26:12 -0500
To: bug-CPANPLUS [...] rt.cpan.org
From: yaberger [...] ca.ibm.com
Hi, Thank you all for your answers. I've found some threads about cpan-outdated before opening this ticket but I would prefer to use what is already bundled with Perl than installing additional modules to support the updates of the modules I use. Also, I believe that cpan-outdated depends on cpanminus. CPANPLUS (cpanp) seems a lot easier to use than the regular CPAN (require a lot less configuration). A fresh Perl 5.18.1 install really show 78 outdated modules when I list them with the 'o' option of cpanp. Thanks for sharing that Perl 5.18.2 is about to be released, I'll probably wait this one before compiling my final version. However, I'm pretty sure that even 5.18.2 will have a few outdated modules and that in the next few weeks/months, more will need to be updated so having access to a command that update all outdated modules will still be useful. Thanks for sharing the "o; i *;" trick with cpanp. I believe this will be what I'll be using. Your perl script using CPANPLUS::Backend is also quite simple and I may use it if I need more logical in my "update all modules" procedure (ex: update all except this one or that one). This ticket can now be closed. Best regards, Yannick Bergeron Advisory IT Specialist
Subject: [rt.cpan.org #91182] Update all outdated perl modules with cpanp?
Date: Wed, 11 Dec 2013 15:37:39 -0500
To: bug-CPANPLUS [...] rt.cpan.org
From: yaberger [...] ca.ibm.com
Hi, I've just tried the little perl script using CPANPLUS::Backend and saw this: CPANPLUS will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /usr/local/perl-5.18.1/lib/5.18.1/CPANPLUS/Config.pm, line 13. I was planning to use CPANPLUS because it is part of the Perl core distribution in 5.18.1 so if it's going to be removed in 5.20, I may prefer to use something else. I'll take a closer look at the original CPAN module and see if it's possible to perform modules update without too much configurations Best regards, Yannick Bergeron Advisory IT Specialist