1 kmod - Linux kernel module handling
6 kmod is a set of tools to handle common tasks with Linux kernel modules like
7 insert, remove, list, check properties, resolve dependencies and aliases.
9 These tools are designed on top of libkmod, a library that is shipped with
10 kmod. See libkmod/README for more details on this library and how to use it.
11 The aim is to be compatible with tools, configurations and indexes from
12 module-init-tools project.
14 Compilation and installation
15 ============================
17 In order to compiler the source code you need following software packages:
21 Optional dependencies:
25 Typical configuration:
26 ./configure CFLAGS="-g -O2" --prefix=/usr \
27 --sysconfdir=/etc --libdir=/usr/lib
29 Configure automatically searches for all required components and packages.
31 To compile and install run:
37 Run 'bootstrap' script before configure. If you want to accept the recommended
38 flags, you just need to run 'bootstrap-configure'.
40 Make sure to read the CODING-STYLE file and the other READMEs: libkmod/README
47 http://www.kernel.org/pub/linux/utils/kernel/kmod/
50 linux-modules@vger.kernel.org (no subscription needed)
53 git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
54 http://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
55 https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
58 http://git.kernel.org/?p=utils/kernel/kmod/kmod.git
61 #kmod on irc.freenode.org
63 Compatibility with module-init-tools
64 ====================================
66 kmod replaces module-init-tools, which is end-of-life. Most of its tools are
67 rewritten on top of libkmod so it can be used as a drop in replacements.
68 Somethings however were changed. Reasons vary from "the feature was already
69 long deprecated on module-init-tools" to "it would be too much trouble to
72 There are several features that are being added in kmod, but we don't
73 keep track of them here.
78 * 'modprobe -l' was marked as deprecated and does not exist anymore
80 * 'modprobe -t' is gone, together with 'modprobe -l'
82 * modprobe doesn't parse configuration files with names not ending in
83 '.alias' or '.conf'. modprobe used to warn about these files.
85 * modprobe doesn't parse 'config' and 'include' commands in configuration
88 * modprobe from m-i-t does not honour softdeps for install commands. E.g.:
91 install bli "echo bli"
92 install bla "echo bla"
95 With m-i-t, the output of 'modprobe --show-depends bla' will be:
102 * kmod doesn't dump the configuration as is in the config files. Instead it
103 dumps the configuration as it was parsed. Therefore, comments and file names
104 are not dumped, but on the good side we know what the exact configuration
105 kmod is using. We did this because if we only want to know the entire content
106 of configuration files, it's enough to use find(1) in modprobe.d directories
111 * there's no 'depmod -m' option: legacy modules.*map files are gone
116 * module-init-tools used /proc/modules to parse module info. kmod uses
117 /sys/module/*, but there's a fallback to /proc/modules if the latter isn't