Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
re-build packages for new kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
vandien
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2006
Posts: 137

PostPosted: Mon Sep 03, 2007 4:25 am    Post subject: re-build packages for new kernel Reply with quote

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
View user's profile Send private message
i92guboj
Moderator
Moderator


Joined: 30 Nov 2004
Posts: 9755
Location: Córdoba (Spain)

PostPosted: Mon Sep 03, 2007 4:33 am    Post subject: Re: re-build packages for new kernel Reply with quote

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

;)
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Suicidal
l33t
l33t


Joined: 30 Jul 2003
Posts: 940
Location: /dev/null

PostPosted: Thu Sep 13, 2007 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum