Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

re-build packages for new kernel

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
vandien
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Wed May 03, 2006 1:56 pm

re-build packages for new kernel

  • Quote

Post by vandien » Mon Sep 03, 2007 4:25 am

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: 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";
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

Re: re-build packages for new kernel

  • Quote

Post by i92guboj » Mon Sep 03, 2007 4:33 am

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

;)
Top
Suicidal
l33t
l33t
User avatar
Posts: 959
Joined: Wed Jul 30, 2003 4:55 am
Location: /dev/null

  • Quote

Post by Suicidal » Thu Sep 13, 2007 8:01 pm

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: Select all

emerge -av $(qdepends -CNQ virtual/linux-sources)
Top
Post Reply

3 posts • Page 1 of 1

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic