0
votes

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!

1

1 Answers

2
votes

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