6.51. Module-Init-Tools-3.12

The Module-Init-Tools package contains programs for handling kernel modules in Linux kernels greater than or equal to version 2.5.47.

Approximate build time: 0.1 SBU
Required disk space: 8.6 MB

6.51.1. Installation of Module-Init-Tools

To avoid a problem with regenerating the man pages when not needed, first rewrite a file that just points to another man page:

echo '.so man5/modprobe.conf.5' > modprobe.d.5

The test suite of this package is geared towards the needs of its Maintainer. The command make check builds a specially wrapped version of modprobe which is useless for normal operation. To run this (about 0.2 SBU), issue the following commands (note that the make clean command is required to clean up the source tree before recompiling for normal use):

make check
make clean

Prepare Module-Init-Tools for compilation:

./configure --prefix=/ --enable-zlib-dynamic --mandir=/usr/share/man

Compile the package:


Install the package:

make INSTALL=install install

The meaning of the make parameter:


Normally, make install will not install the binaries if they already exist. This option overrides that behavior by calling install instead of using the default wrapper script.

6.51.2. Contents of Module-Init-Tools

Installed programs: depmod, insmod, insmod.static, lsmod, modinfo, modprobe, and rmmod

Short Descriptions


Creates a dependency file based on the symbols it finds in the existing set of modules; this dependency file is used by modprobe to automatically load the required modules


Installs a loadable module in the running kernel


A statically compiled version of insmod


Lists currently loaded modules


Examines an object file associated with a kernel module and displays any information that it can glean


Uses a dependency file, created by depmod, to automatically load relevant modules


Unloads modules from the running kernel