dkms
TLDR
List installed modules
$ dkms status
Rebuild modules for current kernel$ sudo dkms autoinstall
Install a module version$ sudo dkms install -m module_name -v 1.2.1
Remove module from all kernels$ sudo dkms remove -m module_name -v 1.2.1 --all
Add module source$ sudo dkms add -m module_name -v 1.2.1
Build module for current kernel$ sudo dkms build -m module_name -v 1.2.1
SYNOPSIS
dkms action [options] [module/module-version]
DESCRIPTION
dkms (Dynamic Kernel Module Support) is a framework that allows kernel modules to be dynamically built for each kernel version on a system. It automatically rebuilds modules when a new kernel is installed.
PARAMETERS
-m, --module
Specify module name-v, --version
Specify module version-k, --kernelver
Specify kernel version--all
Apply to all kernel versions-c, --config
Specify dkms.conf location
ACTIONS
add
Add a module source to the DKMS treeremove
Remove a module from the DKMS treebuild
Build a module for a specific kernelinstall
Install a built module for a kerneluninstall
Uninstall a module from a kernelautoinstall
Install all modules for current kernelstatus
Show status of DKMS-managed modulesmkdriverdisk
Create a driver disk imagemktarball
Create a tarball of module source
CAVEATS
DKMS requires kernel headers to be installed. Module sources are stored in /usr/src/. Kernel upgrades trigger automatic module rebuilds if properly configured.
HISTORY
dkms was developed by Dell as a solution to maintain out-of-tree kernel modules across kernel updates without manual rebuilding.


