Temporarily removing Kernel modules.
For whatever reason you may want to temporarily remove a kernel module. This can be done super easily with the following set of commands & doesn’t take very long..
Start by opening up a new terminal window & running
lsmod
to list all the modules that are currently loaded….Next run
modinfo modulenamehere
to view the details of a module….Replace “modulenamehere” with the actual name of the module..
Finally run
rmmod modulenamehere
to remove the module….Note that you’ll only see output in the terminal if something goes wrong..
If you don’t see any output from that last command, then everything has worked correctly & you have just successfully removed a kernel module temporarily.
To insert the module back into the kernel you can either run insmod modulenamehere
or reboot your system.