Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove linux external kernel module which is installed with "make modules_install" command?

I found that, I can install an externel linux kernel module with "make modules && make modules_install" command, which will copy the *.ko file (such as test.ko) into /lib/modules/ directory.

But when I try to uninstall (not unload) the kernel module, I found that there is no command like "make modules_uninstall" to do that. I tried to remote the .ko file in /lib/modules/ directory, but the module's information still can be found with "modinfo test" command. So, the module's infomation is still remain in the system.

Is there a way to totally uninstall the external kernel module from the system? Thanks!

like image 734
Dahui Avatar asked Jul 21 '26 00:07

Dahui


1 Answers

After you removed the .ko file(s), you also need to run /sbin/depmod -a to update the information about available modules.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!