1 ## kmod - Linux kernel module handling
3 [![Coverity Scan Status](https://scan.coverity.com/projects/2096/badge.svg)](https://scan.coverity.com/projects/2096)
10 linux-modules@vger.kernel.org (no subscription needed)
11 https://lore.kernel.org/linux-modules/
14 http://www.kernel.org/pub/linux/utils/kernel/kmod/
17 git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
18 http://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
19 https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
22 http://git.kernel.org/?p=utils/kernel/kmod/kmod.git
23 https://github.com/kmod-project/kmod
26 #kmod on irc.freenode.org
29 LGPLv2.1+ for libkmod, testsuite and helper libraries
36 kmod is a set of tools to handle common tasks with Linux kernel modules like
37 insert, remove, list, check properties, resolve dependencies and aliases.
39 These tools are designed on top of libkmod, a library that is shipped with
40 kmod. See libkmod/README for more details on this library and how to use it.
41 The aim is to be compatible with tools, configurations and indexes from
42 module-init-tools project.
44 Compilation and installation
45 ============================
47 In order to compiler the source code you need following software packages:
51 Optional dependencies:
55 Typical configuration:
56 ./configure CFLAGS="-g -O2" --prefix=/usr \
57 --sysconfdir=/etc --libdir=/usr/lib
59 Configure automatically searches for all required components and packages.
61 To compile and install run:
67 Run 'autogen.sh' script before configure. If you want to accept the recommended
68 flags, you just need to run 'autogen.sh c'. Note that the recommended
69 flags require cython be installed to compile successfully.
71 Make sure to read the CODING-STYLE file and the other READMEs: libkmod/README
74 Compatibility with module-init-tools
75 ====================================
77 kmod replaces module-init-tools, which is end-of-life. Most of its tools are
78 rewritten on top of libkmod so it can be used as a drop in replacements.
79 Somethings however were changed. Reasons vary from "the feature was already
80 long deprecated on module-init-tools" to "it would be too much trouble to
83 There are several features that are being added in kmod, but we don't
84 keep track of them here.
89 * 'modprobe -l' was marked as deprecated and does not exist anymore
91 * 'modprobe -t' is gone, together with 'modprobe -l'
93 * modprobe doesn't parse configuration files with names not ending in
94 '.alias' or '.conf'. modprobe used to warn about these files.
96 * modprobe doesn't parse 'config' and 'include' commands in configuration
99 * modprobe from m-i-t does not honour softdeps for install commands. E.g.:
102 install bli "echo bli"
103 install bla "echo bla"
106 With m-i-t, the output of 'modprobe --show-depends bla' will be:
113 * kmod doesn't dump the configuration as is in the config files. Instead it
114 dumps the configuration as it was parsed. Therefore, comments and file names
115 are not dumped, but on the good side we know what the exact configuration
116 kmod is using. We did this because if we only want to know the entire content
117 of configuration files, it's enough to use find(1) in modprobe.d directories
122 * there's no 'depmod -m' option: legacy modules.*map files are gone
127 * module-init-tools used /proc/modules to parse module info. kmod uses
128 /sys/module/*, but there's a fallback to /proc/modules if the latter isn't