Manually run dkms to build kernel modules

Some time dkms will fail to build a new version of a module after package upgrade or kernel upgrade, so this is my quick notes about this

# nvidia proprietary driver
dkms add -m nvidia -v 430.34 
dkms build -m nvidia -v 430.34 
dkms install -m nvidia -v 430.34 -k `uname -r` --force

# ZFS module
dkms add -m zfs -v 0.8.1 
dkms build -m zfs -v 0.8.1 
dkms install -m zfs -v 0.8.1 -k `uname -r` --force

*note: you don’t need to add the driver each time, but in some bad cased I had to remove all modules and clean the system, and then re-add them back and build them again.

Leave a Reply

Your email address will not be published.