Gentoo Archives: gentoo-user

From: Consus <consus@××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Listing kernel modules
Date: Sat, 02 May 2020 13:29:48
Message-Id: 20200502132938.GB985@redacted
In Reply to: [gentoo-user] Listing kernel modules by Peter Humphrey
1 On Sat, May 02, 2020 at 02:19:18PM +0100, Peter Humphrey wrote:
2 > Afternoon all,
3 >
4 > Is there a straightforward way of listing kernel modules that exist
5 > but haven't been loaded?
6
7 This will do I guess:
8
9 # lsmod | awk '{print $1}' > inserted
10 # find /lib/modules/$(uname -r) -name '*.ko' -printf '%f\n' | sed 's/\.ko$//' > present
11 # cat inserted present | sort -u

Replies

Subject Author
Re: [gentoo-user] Listing kernel modules Consus <consus@××××.net>