From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QM9XF-0000O5-Vz for garchives@archives.gentoo.org; Tue, 17 May 2011 01:57:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DBB471C071; Tue, 17 May 2011 01:55:42 +0000 (UTC) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.213.181]) by pigeon.gentoo.org (Postfix) with ESMTP id ACB0E1C071 for ; Tue, 17 May 2011 01:55:42 +0000 (UTC) Received: by yxm8 with SMTP id 8so19946yxm.40 for ; Mon, 16 May 2011 18:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=lzPDSx6JpMRU8iidZBXznIK228gT2vaLtoZ16zv/mGM=; b=DHWSNSODaSjr69xo4DNPQ4el//+4Eo8NDZgVxSaIqKtnE2xlsLaRQaZt1i0wa1mRWf 30RRdMh2XKUubnzGtQqxY+FXAEAoDjAIYxmN0wRC4/zpHhnJa0wlTMzNFdCpFteHoXmL uYpvfRXIOhKGFpcKgjSyV8Ta2vO0DBWpoUaFY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Y9Sa8nCw9lhW4XTdG3mazRwcwXw3ZzDTG9VRzrA62RtSjkEiGkKXw+VGd931rAuHZm Jn/jh/F1w/EdnfoycmpKcUfSJsDR6zdJOXmLRvsBBgJcZxM+gYvKRgz2wR488RinGXpy GUosWOxFh7tHJ06H6zJ9gJI6lWIx0pHU7903w= Received: by 10.236.173.103 with SMTP id u67mr45274yhl.359.1305597342177; Mon, 16 May 2011 18:55:42 -0700 (PDT) Received: from [192.168.2.5] (adsl-65-0-94-119.jan.bellsouth.net [65.0.94.119]) by mx.google.com with ESMTPS id h35sm27678yhm.42.2011.05.16.18.55.40 (version=SSLv3 cipher=OTHER); Mon, 16 May 2011 18:55:41 -0700 (PDT) Message-ID: <4DD1D59B.1030807@gmail.com> Date: Mon, 16 May 2011 20:55:39 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110501 Gentoo/2.0.14 SeaMonkey/2.0.14 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] multiple /lib64/modules directories References: <4DD1BD4A.90309@gmail.com> <201105170212.25833.alan.mckinnon@gmail.com> In-Reply-To: <201105170212.25833.alan.mckinnon@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 1ce0b394730702653eec6d601abe6ebb Alan McKinnon wrote: > > This is basic Linux stuff. > > There is a /lib/modules/xxxx for each installed kernel binary. > Portage will never remove them as portage did not install them, they are > installed by the "make modules_install" target of the kernel build process, > which you always run manually outside of portage's control. > > The vbox modules are also in those directories under misc/ but this comes with > a quirk. They are usually built by remerging virtualbox-modules or running > module-rebuild. Unlike most other ebuilds, these do not delete everything from > the last emerge and replace all files (you will still need all installed > modules for any installed kernels you still have). So, portage simply does not > remove things from /lib/modules/ > > In other words, what you have is exactly what you should have and things as > working as designed. To remove anything in /lib/modules, you must manually rm > them yourself. > > Incidentally, the same goes for the various kernel files in /boot/. > > > > So, if I delete a bzImage from /boot that came from kernel version 2.6.32-1 and no longer plan to use it, I could also remove the modules from /lib/modules/2.32-1 as well? That could come in handy to know if someone has a small drive and has to watch their drive space. root@smoker / # du -shc /lib/modules/2.6.30-gentoo-r8/ 7.6M /lib/modules/2.6.30-gentoo-r8/ 7.6M total root@smoker / # It's not much but it could help. Dale :-) :-)