如何删除已添加(未安装)的 dkm

Neg*_*ito 5 kernel dkms drivers

由于某种原因,我很久以前安装了一个驱动程序,但它不再使用,并且在 root 权限中我检查了dkms status它显示以下内容: 在此输入图像描述

我尝试使用以下命令(单独)删除它

 dkms uninstall -k rtl88x2bu -v 5.2.4.4
 dkms uninstall -m rtl88x2bu -v 5.2.4.4
 dkms remove -k rtl88x2bu -v 5.2.4.4
 dkms remove -m rtl88x2bu -v 5.2.4.4
Run Code Online (Sandbox Code Playgroud)

所以我想知道如何删除添加的驱动程序。

Ter*_*nce 9

请参阅: http ://manpages.ubuntu.com/manpages/xenial/man8/dkms.8.html

链接中指出:

   remove [module/module-version] [-k kernel/arch] [--all]

       Removes  a module/version or module/version/kernel/arch combination from the tree.  If
       the module is currently installed, it first uninstalls  it  and  if  applicable,  will
       replace  it  with  its  original_module.   Use the --all option in order to remove all
       instances for every kernel at once.
Run Code Online (Sandbox Code Playgroud)

由于您要删除的模块没有与之关联的内核,因此删除它的命令是:

dkms remove rtl88x2bu/5.2.4.4 --all
Run Code Online (Sandbox Code Playgroud)

您只需指定module/versionthen--all即可从系统中完全删除模块。