简体   繁体   English

如何删除使用“make modules_install”命令安装的linux外部内核模块?

[英]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.

相关问题 我应该在每次对Linux内核进行一些更改时都进行modules_install install的安装吗 - Should I make modules_install install everytime I make a little change to linux kernel make modules_install重新启动配置过程 - make modules_install restarts configuration process 运行make modules_install时出现段错误 - Segfault while running make modules_install 编译定制内核模块时,_install会导致错误 - When compiling a custom kernel modules_install results in an error 在不执行“ make modules”的情况下执行“ make modules_install”是否有意义? - Is it meaningful to execute “make modules_install” without executing “make modules”? 将外部Linux内核模块安装到/ lib / modules /`uname -r` /目录中 - Installing external linux kernel module into /lib/modules/`uname -r`/ directory 如何制作一个Linux内核模块依赖于另一个带有depmod的外部模块? - How to make one Linux kernel module depend on another external module with depmod? 无法 :make install: Linux 内核模块 SSL 错误 - Failied to :make install: Linux kernel module SSL error 如何查看有关新加载的外部Linux内核模块的信息? - How to view information about a newly loaded external Linux kernel module? 无法删除linux内核模块,也无法安装模块 - Can't remove linux kernel module, yet also cannot install module
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM