How can I delete a dkms module in (arch) linux?

9.4k Views Asked by At

I have a dkms module. I wanted to remove it. I did sudo dkms remove .... But when I update to a newer kernel, my package manager tries to build that module and failed, so it added it again.

How do I prevent that and remove the module?

1

There are 1 best solutions below

3
On

To remove the module, you need to run sudo dkms remove modul/version --all to prevent it from being rebuilt during the next update, you must also remove the sources under /usr/src/.

here is an example of how to remove akvcam module

dkms status

akvcam, 1.2.0, 5.12.14-arch1-1, x86_64: installed

sudo dkms remove akvcam/1.2.0 --all
sudo rm -rf /usr/src/akvcam-1.2.0/
sudo rm /etc/modprobe.d/akvcam.conf

good luck marco manngatter