OS Manuals

/usr/bin/depmod

Linux kernel module management utilities

From kmod 34.3-r0 (os), captured 2026-11-05 by running depmod --help (exit 0). permalink

Usage:
	depmod -[aA] [options] [forced_version]

If no arguments (except options) are given, "depmod -a" is assumed

depmod will output a dependency list suitable for the modprobe utility.

Options:
	-a, --all            Probe all modules
	-A, --quick          Only does the work if there's a new module
	-e, --errsyms        Report not supplied symbols
	-n, --show           Write the dependency file on stdout only
	-P, --symbol-prefix  Architecture symbol prefix
	-C, --config=PATH    Read configuration from PATH
	-v, --verbose        Enable verbose mode
	-w, --warn           Warn on duplicates
	-V, --version        show version
	-h, --help           show this help

The following options are useful for people managing distributions:
	-b, --basedir=DIR    Root path (default: /).
	-m, --moduledir=DIR  Module directory (default: /lib/modules).
	-o, --outdir=DIR     Output root path (default: same as <basedir>).
	-F, --filesyms=FILE  Use the file instead of the
	                     current kernel symbols.
	-E, --symvers=FILE   Use Module.symvers file to check
	                     symbol versions.
Options (15)
OptionDescriptionSource
-a, --allProbe all modules.help + man
-A, --quickThis option scans to see if any modules are newer than the modules.dep file before any work is done: if not, it silently exits rather than regenerating the files.help + man
-e, --errsymsWhen combined with the -F option, this reports any symbols which a module needs which are not supplied by other modules or the kernel.help + man
-n, --show, --dry-runThis sends the resulting modules.dep and the various map files to standard output rather than writing them into the module directory.help + man
-P, --symbol-prefixSome architectures prefix symbols with an extraneous character.help + man
-C, --config PATHThis option overrides the default configuration files.help + man
-v, --verboseIn verbose mode, depmod will print (to stdout) all the symbols each module depends on and the module's file name which provides that symbol.help + man
-w, --warnWarn on duplicate dependencies, aliases, symbol versions, etc.help + man
-V, --versionShow version of program and exit.help + man
-h, --helpPrint the help message and exit.help + man
-b, --basedir DIROverride the base directory <BASEDIR> where modules are located.help + man
-m, --moduledir DIROverride the module directory <MODULEDIR>, which defaults to /lib/modules prefix set at build time.help + man
-o, --outdir DIRSet the output directory where depmod will store any generated file.help + man
-F, --filesyms FILESupplied with the System.map produced when the kernel was built, this allows the -e option to report unresolved symbols.help + man
-E, --symvers FILEWhen combined with the -e option, this reports any symbol versions supplied by modules that do not match with the symbol versions provided by the kernel in its Module.symvers.help + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.