• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

dkms: command not found

by Deepika

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.

If you encounter the below error while running the command dkms:

dkms: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install dkms
Ubuntu apt-get install dkms
Arch Linux pacman -S dkms
Kali Linux apt-get install dkms
Fedora dnf install dkms
Raspbian apt-get install dkms

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

Filed Under: Linux

Some more articles you might also be interested in …

  1. nmcli general Command Examples in Linux
  2. scriptreplay Command Examples in Linux
  3. compare: View the difference between 2 images
  4. bspc Command Examples in Linux
  5. Nginx load balancing
  6. Basic Linux File system tutorial – ext2, ext3, ext4, JFS and XFS
  7. “az webapp” Command Examples (Manage Web Applications hosted in Azure Cloud Services)
  8. csvstat: Print descriptive statistics for all columns in a CSV file
  9. CentOS / RHEL : How to configure iptable rules to allow FTP ports 20/21
  10. xrpd: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright