No apparent way to force DKMS to rebuild an already built package

Bug #1265136 reported by Christ Schlacta
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
DKMS
Confirmed
Wishlist
Unassigned

Bug Description

There is no way to force DKMS to rebuild what it believes to be a properly built and installed kernel module. Some combination of the following self-explanatory commands should be added to DKMS to provide this functionality

clean
rebuild
reinstall

Thank you for remedying this promptly.

Revision history for this message
Frederick J. Henderson (frederickjh) wrote :

Try removing the module then building.

 sudo dkms remove modulename -k $(uname -r)

then

 sudo dkms build modulename -k (uname -r)

This will rebuild the module for the currently running kernel.

Changed in dkms:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
David A. Desrosiers (setuid) wrote :

I've had to do this about 200 times this week for an out-of-tree vendor driver just this week.

With a current dkms version, this should be:

# Remove and uninstall the module from the current kernel
sudo dkms remove -m <module> -v <version> -k $(uname -r) # or -k all

# Build and install the module for the current kernel
sudo dkms install -m <module> -v <version> -k $(uname -r) # or -k all

Revision history for this message
You-Sheng Yang (vicamo) wrote :

@setuid, you might want to file a bug on https://github.com/dell/dkms/issues instead.

Revision history for this message
Bill McGonigle (bill-launchpad-net) wrote :

I filed one over there since I hit the same issue:

https://github.com/dell/dkms/issues/120

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.