The “dkms” command in Linux is used to manage Dynamic Kernel Module Support (DKMS) modules. DKMS is a system that allows for the automatic installation, rebuilding, and removal of kernel modules when a new kernel version is installed or removed. Essentially, the dkms command allows you to automatically rebuild kernel modules when a new kernel version is installed, ensuring that the modules are always up-to-date and compatible with the current kernel. This is particularly useful for proprietary or third-party modules that may not be included in the official Linux kernel. The dkms command is typically used by system administrators and developers to manage and maintain kernel modules on Linux systems.
dkms Command Examples
1. List currently installed modules:
# dkms status
2. Rebuild all modules for the currently running kernel:
# dkms autoinstall
3. Install version 1.2.1 of the acpi_call module for the currently running kernel:
# dkms install -m acpi_call -v 1.2.1
4. Remove version 1.2.1 of the acpi_call module from all kernels:
# dkms remove -m acpi_call -v 1.2.1 --all