[英]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.我发现,我可以使用“make modules && make modules_install”命令安装一个外部linux内核模块,它将*.ko文件(例如test.ko)复制到/lib/modules/目录中。
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.但是当我尝试卸载(而不是卸载)内核模块时,我发现没有像“make modules_uninstall”这样的命令来做到这一点。 I tried to remote the .ko file in /lib/modules/ directory, but the module's information still can be found with "modinfo test" command.
我尝试远程访问 /lib/modules/ 目录中的 .ko 文件,但仍然可以使用“modinfo test”命令找到模块的信息。 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
来更新有关可用模块的信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.