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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. jobs Command Examples in Linux
  2. nmcli networking Command Examples
  3. Difference Between Qemu and KVM
  4. Audit Log And Messages File Not Rotating on CentOS/RHEL
  5. How to Remove/ Disable Bash shell Command History on Linux
  6. beep Command Examples in Linux
  7. CentOS / RHEL : How to find Logical volumes (LVs) contained in Physical Volume (PVs) in LVM
  8. How to Use Udev Rules to Create oracleasm Disks in CentOS/RHEL 8
  9. touch Command Examples in Linux
  10. mkfs.exfat: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright