I have a dkms module I do not need anymore and I wanted to remove it. I did sudo dkms remove...
and it removed it. But when I updatet to a newer kernel, my package manager tried to build that module and failed, so it added it again.
How do I prevent that from happening and really remove the module?
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
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.