简体   繁体   中英

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!

删除 .ko 文件后,您还需要运行/sbin/depmod -a来更新有关可用模块的信息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM