On Linux operating systems, the rmmod command removes a module from the Linux kernel.
Description
rmmod is a simple program which removes (unloads) a module from the Linux kernel. In most cases, you will want to use modprobe with the -r option instead, as it is more robust and handles dependencies for you.
- Description
- Syntax
- Examples
- Related commands
- Linux commands help
Syntax
rmmod [-f] [-w] [-s] [-v] [modulename]
Options
Examples
sudo rmmod /lib/modules/3.2.0-4-686-pae/kernel/sound/ac97_bus.ko
Remove the kernel module ac97_bus. Any other modules which depend upon this module will cease to function. Only perform this removal if you are certain of what you are doing.
It is strongly recommended to use modprobe -r, rather than rmmod, to remove your kernel modules, to ensure that removal does not break any dependencies.
Related commands
depmod — Generate a list of kernel module dependencies and associated map files.insmod — Insert a module into the Linux kernel.lsmod — Show the status of Linux kernel modules.modinfo — Show information about a Linux kernel module.modprobe — Add and remove modules from the Linux kernel.