View Full Version : [ubuntu] Loadable kernel modules - list all available one

August 2nd, 2010, 06:00 PM
How do i list all available LKM on my system. (Not loaded but all available to the system).

August 2nd, 2010, 06:08 PM
If you on Lucid or use grub2, just make sure /etc/grub.d/10_linux is executable.
They should all show up in your grub2 menu.

August 2nd, 2010, 06:16 PM
No not different kernel versions. But loadable kernel modules.

For example:

lsmod - list loaded modules

But i would like a list of all available loadable kernel modules that system can use.

August 2nd, 2010, 06:23 PM
Not what OP wanted, see next post...

August 2nd, 2010, 06:29 PM
Here it is:

sudo apt-get install module-assistant
sudo module-assistant update
sudo module-assistant list-availableThis will list available ones.

August 2nd, 2010, 06:45 PM
And here is the MAN page for the module-assistant command:


August 3rd, 2010, 08:29 PM
Thank you for your answer. I will test this tomorrow.

August 3rd, 2010, 08:40 PM
Thank you for your answer. I will test this tomorrow.

You are always welcome! :)

August 7th, 2010, 09:07 PM
I don't think module-assistant is what i am after.

If i do:

sudo module-assistant list-available

I get a bunch of modules. But if i do lsmod (lists loaded LKM) and compare them. They are not on the list.

Closest thing i found is:

sudo modprobe --list

But there must be in some file a list of all available LKM to the system and their correct names?

August 7th, 2010, 09:15 PM
Check this page out:


Not sure if that's what you are looking for, but it may be.

October 12th, 2010, 05:01 AM
for the lazy
1) listing them

ls /lib/modules/2) find out which one you're using

uname -r or uname -a3) remove, be sure they are not the ones you are using!

sudo apt-get remove --purge 2.6.32-23-*
sudo apt-get remove --purge 2.6.32-24-*

October 15th, 2010, 11:28 PM
LKM are not the same thing as old kernels. Just for clarifying thing out.

October 16th, 2010, 06:40 PM
These should tell you everything you ever wanted to know about LKMs and then some.

Linux Loadable Kernel Module HOWTO (http://tldp.org/HOWTO/Module-HOWTO/)

Loadable Kernel Modules Tutorial (http://www.linuxsolutions.fr/linux-loadable-kernel-modules-lkms-how-to-make-kernels/)

Linux Loadable Kernel Modules (http://www.rt-embedded.com/blog/archives/linux-loadable-kernel-modules/)