i'm sure there's other programs/scripts that do this, but i'm not aware of them.
Code: Select all
#!/usr/bin/perl
@package = `grep "/lib/modules/2.6." /var/db/pkg/*/*/CONTENTS`;
foreach(@package) {
chomp;
s/^\/var\/db\/pkg\/(.*)\/CONTENTS.*$/$1/;
if("$_" ne "$package") {
$package = $_;
$packages = $packages . "=$_ ";
}
}
chop($packages);
system "emerge -1a $packages";

