DH_INSTALLMODULES(1)
π DH_INSTALLMODULES β register kernel modules π
okay bestie, gather round, because this little icon from the Debhelper family is about to make your kernel modules β¨*official*β¨. it's dh_installmodules, and it handles the whole "hey system, pls notice my modules" situation for you. no cap.
πΈ SYNOPSIS πΈ
dh_installmodules [debhelper options] [-n] [--name=name]
π¦ DESCRIPTION π¦
so dh_installmodules is a debhelper program, and its whole job β its entire main character arc β is registering kernel modules. π
here's the tea: it goes looking for kernel modules in the package build directory, and if it finds any, it will automatically generate preinst, postinst and postrm commands that run depmod and register those modules the moment your package gets installed. it doesn't even need to be asked. so efficient. so slay.
those commands don't just wander in on their own though β they get inserted into the maintainer scripts by dh_installdeb(1). teamwork, fr fr. π«Ά
π FILES π
debian/package.modprobeβ this gets installed tousr/lib/modprobe.d/package.confinside the package build directory. but wait, plot twist: before compat version 14, these files get installed underetc/modprobe.dinstead. historical lore, iykyk. π
β¨ OPTIONS β¨
-n,--no-scriptsβ do not modify thepreinst/postinst/postrmscripts. hands off, bestie. π--name=nameβ when you use this one,dh_installmodulesgoes looking for and installs files nameddebian/package.name.modprobeinstead of the usualdebian/package.modprobe. it's giving custom naming era. π
β NOTES β
okay this part is important, don't scroll past it: this command is not idempotent. π
that means you should call dh_prep(1) between invocations of this command. if you don't? it may cause multiple instances of the same text to be added to your maintainer scripts. like, the same paragraph, over and over. cursed behaviour. so pls, do the dh_prep(1) thing. your maintainer scripts will thank you. π
π SEE ALSO π
also just so you know: this program is a part of debhelper. one big happy family. π§
π AUTHOR π
Joey Hess <joeyh@debian.org>
and that's the whole page, bestie!! π this was debhelper version 14.5ubuntu1, dated 2026-09-21, and honestly? iconic of it. now go register those modules. periodt. π β¨
π¦ where this page comes from
- ubuntu stonking: debhelper 14.5ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms