View previous topic :: View next topic |
Author |
Message |
vandien Tux's lil' helper
Joined: 03 May 2006 Posts: 137
|
Posted: Mon Sep 03, 2007 4:25 am Post subject: re-build packages for new kernel |
|
|
quick hack, but it found some packages that i wasn't aware installed stuff in /lib/modules
i'm sure there's other programs/scripts that do this, but i'm not aware of them.
Code: | #!/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"; |
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Mon Sep 03, 2007 4:33 am Post subject: Re: re-build packages for new kernel |
|
|
vandien wrote: | quick hack, but it found some packages that i wasn't aware installed stuff in /lib/modules
i'm sure there's other programs/scripts that do this, but i'm not aware of them.
|
sys-kernel/module-rebuild
|
|
Back to top |
|
|
Suicidal l33t
Joined: 30 Jul 2003 Posts: 959 Location: /dev/null
|
Posted: Thu Sep 13, 2007 8:01 pm Post subject: |
|
|
This line will rebuild everything that depends on virtual/linux-sources, whether they have modules or not.
You will need app-portage/portage-utils installed, not sure if it is part of the system profile yet.
Code: | emerge -av $(qdepends -CNQ virtual/linux-sources) |
|
|
Back to top |
|
|
|