Modprobe

From LQWiki
Jump to: navigation, search

modprobe is a command used to add or remove modules from the kernel.

To display all available modules use:

/sbin/modprobe -l

To list all loaded modules, use:

lsmod

To show the filename of a module, use e.g.:

$ modinfo -n snd_ac97_codec
/lib/modules/2.6.18.8-0.1-default/kernel/sound/pci/ac97/snd-ac97-codec.ko

TroubleShooting

If you get an error message like

FATAL: Could not load /lib/modules/2.6.27.23-0.1-default/modules.dep: No such file or directory

You probably have a kernel installation that is newer than your running kernel. This typically happens if you update your distribution.

See also