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

Alexis <[email protected]> Mon, 27 Apr 2026 17:21:22 +1000
Newsgroups gmane.linux.gentoo.user
Message-ID <[email protected]>
William Kenworthy <[email protected]> writes:

>> No ... this (possibly due to using genkernel?):
>
> rattus ~ # ls -al /etc/kernels
> total 7892
> drwxr-xr-x   2 root root   4096 Apr 18 20:26 .
> drwxr-xr-x 103 root root   4096 Apr 27 06:26 ..
> -rw-r--r--   1 root root 193674 Jan 24  2020
>  kernel-config-4.19.97-gentoo-x86_64
> -rw-r--r--   1 root root 184104 Apr  3  2021
>  kernel-config-5.10.27-gentoo-x86_64
> -rw-r--r--   1 root root 153153 Jul 17  2021
>  kernel-config-5.10.49-gentoo-r1-x86_64
> -rw-r--r--   1 root root 220570 Jul 17  2021
>  kernel-config-5.10.49-r1-gentoo-x86_64
> -rw-r--r--   1 root root 220550 Jul 24  2021
>  kernel-config-5.10.52-gentoo-x86_64
> -rw-r--r--   1 root root 225022 Sep 12  2021
>  kernel-config-5.10.61-gentoo-x86_64

Oh okay. i don't have an /etc/kernels/ directory, only an 
/etc/kernel/ directory, and i don't use genkernel, so you might be 
right.

Not sure if you're aware that genkernel is very deprecated, as per 
the Warning on the "genkernel" page on the wiki?

> genkernel is unmaintained; documentation presented here may be 
> incomplete and may not reflect the current state of Gentoo 
> tooling. Users encountering issues with genkernel will be asked 
> to use another tool. Please see the Distribution kernel section 
> in the Handbook for a supported alternative.
-- https://wiki.gentoo.org/wiki/Genkernel


Alexis.