Groups | Search | Server Info | Login | Register


Groups > linux.gentoo.user > #116216

Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete them?

Path csiph.com!pasdenom.info!newsfeed.bofh.team!news.nntp4.net!news.hispagatos.org!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From gentoo.email@wht.com.au
Newsgroups linux.gentoo.user
Subject Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete them?
Date Sun, 26 Apr 2026 19:20:01 +0200
Message-ID <MObjb-AXN-3@gated-at.bofh.it> (permalink)
References <MOa3L-zXg-5@gated-at.bofh.it> <MOan8-AkN-1@gated-at.bofh.it>
List-ID Gentoo Linux mail <gentoo-user.gentoo.org>
Reply-To gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress DR, RN, NRN, OOF, AutoReply
MIME-Version 1.0
User-Agent Mozilla Thunderbird
Content-Language en-AU
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Antiabuse This header was added to track abuse, please include it with any abuse report
X-Antiabuse Primary Hostname - s08ce.syd5.hostingplatform.net.au
X-Antiabuse Original Domain - lists.gentoo.org
X-Antiabuse Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse Sender Address Domain - wht.com.au
X-Get-Message-Sender-Via s08ce.syd5.hostingplatform.net.au: authenticated_id: whtcomau/from_h
X-Authenticated-Sender s08ce.syd5.hostingplatform.net.au: gentoo.email@wht.com.au
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 27 Apr 2026 01:10:10 +0800
X-Original-Message-ID <17652580-15c1-4011-8491-6f24ac806974@wht.com.au>
X-Original-References <fe0d25df-8478-4a2c-8213-79ad1af9e2ab@wht.com.au> <5070256.GXAFRqVoOG@rogueboard>
Xref csiph.com linux.gentoo.user:116216

Show key headers only | View raw


On 4/27/26 12:10 AM, Michael wrote:
> On Sunday, 26 April 2026 16:52:30 British Summer Time
> gentoo.email@wht.com.au wrote:
>> Dear all,

[snip]

>> 		Andrew
> 
> Whenever you build a kernel with various options built as modules [M],
> as opposed to building them in-kernel [*], the compiled modules are
> stored under /lib/modules/.
> 
> You can find all available modules of your current kernel with:
> 
> find /lib/modules/$(uname -r) -type f -name '*.ko*'
> 
> If you have cleared out old kernel images and initramfs files from your
> /efi/ or /boot/, then you have no use for their old module files hanging
> around in your /lib/modules/ and you can safely delete them manually to
> recover disk space.

	Thanks Michael, that's what I though. I've been using the prebuilt 
kernel, "-bin" for a while hence a whole lot of modules but have to get 
back to my own build which usually has stuff all built-in. And yes, I 
have been deleting stuff in /efi/EFI/Gentoo but didn't think of 
/lib/modules.

	Thanks,
		Andrew

Back to linux.gentoo.user | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

[gentoo-user] Whole lot of dir's in /lib/modules - can I delete them? gentoo.email@wht.com.au - 2026-04-26 18:00 +0200
    Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete them? Michael <confabulate@kintzios.com> - 2026-04-26 18:20 +0200
    Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete  them? gentoo.email@wht.com.au - 2026-04-26 19:20 +0200
        Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete them? Michael <confabulate@kintzios.com> - 2026-04-26 21:40 +0200
        Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete  them? William Kenworthy <bill@kenworthy.id.au> - 2026-04-27 04:20 +0200
          Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete  them? Dale <rdalek1967@gmail.com> - 2026-04-27 06:40 +0200
            Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete  them? Alexis <flexibeast@gmail.com> - 2026-04-27 06:50 +0200
              Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete  them? William Kenworthy <bill@kenworthy.id.au> - 2026-04-27 09:00 +0200
                Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete  them? Alexis <flexibeast@gmail.com> - 2026-04-27 09:30 +0200
                  Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete them? Michael <confabulate@kintzios.com> - 2026-04-27 10:20 +0200
      Re: [gentoo-user] Whole lot of dir's in /lib/modules - can I delete  them? Eli Schwartz <eschwartz@gentoo.org> - 2026-04-27 03:10 +0200

csiph-web