Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7be5142cd4
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (21 sloc) 0.618 kb
use strict;
use warnings;
use CPANPLUS::Backend;
$ENV{PERL_MM_USE_DEFAULT} = 1; # despite verbose setting
$ENV{PERL_EXTUTILS_AUTOINSTALL} = '--defaultdeps';
my $cb = CPANPLUS::Backend->new();
my $conf = $cb->configure_object;
$conf->set_conf( 'prereqs' => 1 );
my @list = $cb->installed();
my @rv; my %seen;
for my $mod (@list) {
### skip this mod if it's up to date ###
next if $mod->is_uptodate;
### skip this mod if it's core ###
next if $mod->package_is_perl_core;
if( !$seen{$mod->package}++ ) {
push @rv, $mod;
}
}
@rv = sort { $a->module cmp $b->module } @rv;
$_->install() for @rv;
Jump to Line
Something went wrong with that request. Please try again.