Table of Contents


Add and remove modules from the Linux Kernel

How to Install


See kmod.


$ modprobe -V
kmod version 22



modprobe [options] [-i] [-b] modulename
modprobe [options] -a [-i] [-b] modulename [modulename...]
modprobe [options] -r [-i] modulename
modprobe [options] -r -a [-i] modulename [modulename...]
modprobe [options] -c
modprobe [options] --dump-modversions filename


Management Options

  • -a, --all Consider every non-argument to be a module name to be inserted or removed (-r)
  • -r, --remove Remove modules instead of inserting
    • --remove-dependencies Also remove modules depending on it
  • -R, --resolve-alias Only lookup and print alias and exit
    • --first-time Fail if module already inserted or removed
  • -i, --ignore-install Ignore install commands
  • -i, --ignore-remove Ignore remove commands
  • -b, --use-blacklist Apply blacklist to resolved alias.
  • -f, --force Force module insertion or removal. implies --force-modversions and --force-vermagic
    • --force-modversion Ignore module's version
    • --force-vermagic Ignore module's version magic

Query Options

  • -D, --show-depends

#+LANG_EN Only print module dependencies and exit

  • -c, --showconfig

#+LANG_EN Print out known configuration and exit

  • -c, --show-config

#+LANG_EN Same as --showconfig

  • --show-modversions

#+LANG_EN Dump module symbol version and exit

  • --dump-modversions

#+LANG_EN Same as --show-modversions

General Options

  • -n, --dry-run

#+LANG_EN Do not execute operations, just print out

  • -n, --show

#+LANG_EN Same as --dry-run

  • -C, --config=FILE

#+LANG_EN Use FILE instead of default search paths

  • -d, --dirname=DIR

#+LANG_EN Use DIR as filesystem root for /lib/modules

  • -S, --set-version=VERSION

#+LANG_EN Use VERSION instead of `uname -r`

  • -s, --syslog

#+LANG_EN print to syslog, not stderr

  • -q, --quiet

#+LANG_EN disable messages

  • -v, --verbose

#+LANG_EN enables more messages

  • -V, --version

#+LANG_EN show version

  • -h, --help

#+LANG_EN show this help

See also


See kmod.

Date: 2018-02-20

Author: Dongsoo Lee

Created: 2018-12-10 Mon 03:08