DH_DKMS(1)
π DH_DKMS(1) π
okay bestie, listen β this is dh_dkms from the DKMS Debhelper era, and she's here to make sure your kernel module package doesn't fumble the DKMS bag. no cap. π§
β¨ NAME β¨
dh_dkms β handles DKMS usage by a kernel module package correctly, which is the whole point, and yes it's giving responsible queen π
πΈ SYNOPSIS πΈ
dh_dkms [debhelper options] [-l] [-V[version]] [-- file]
π¦ DESCRIPTION π¦
so dh_dkms is a debhelper program, and her entire job β her moment, her main character arc β is to correctly set up postinst, postrm and the dependencies in kernel module packages that use DKMS. she does the boring paperwork so you don't have to, periodt. π
and here's the tea: if a file named debian/package.dkms exists, then different actions get performed depending on what's inside it. literally it's giving "read the room, read the file." π
π FILES π
debian/package.dkmsdebian/dkms
okay so these can be two different things and you gotta know which:
- it can be a proper configuration file, and in that case it would be installed in the proper directory as
dkms.conf. slay. β¨ - it can also just point to another file β and bestie, this is the one you want when the configuration is provided by upstream β and in that case that file will be installed as
dkms.confin the proper directory. chef's kiss. π
π«Ά this file can only miss if a filename is provided when calling dh_dkms. so like, don't show up empty-handed unless you brought a filename instead. π
π OPTIONS π
-l,--legacyβ adds code so you also support DKMS versions< 2.1.0.0. yes it's giving old-school, but she's inclusive and we respect her. π-V,-V versionβ if"PACKAGE_VERSION"indkms.confis set to"#MODULE_VERSION#", then set it to the given version, or β if none is given β default to the upstream version of the current package. otherwise? leave the value specified indkms.confalone. not me micromanaging your version string π-- fileβ don't look fordebian/package.dkmsordebian/dkmsat all, just installfileasdkms.conf. iconic bypass behaviour. π₯
β οΈ NOTES β οΈ
π¨ bestie, listen closely: this command is not idempotent. that means running it twice is NOT the vibe. dh_prep(1) should be called between invocations of this command. otherwise it may cause multiple instances of the same text to be added to maintainer scripts. we do not want duplicate text, that's so not the move. π
π SEE ALSO π
debhelper(1)- this program is part of the Debian DKMS package.
dkms(8)
π AUTHOR π
David Paleino <dapal@debian.org> β thank you for your service, legend π«Ά
version 3.2.2, dated 2026-02-10, and that's the whole page bestie β go forth and DKMS responsibly πβ¨ππ¦
π¦ where this page comes from
- ubuntu resolute: dh-dkms 3.2.2-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: dh-dkms 3.2.2-1ubuntu1 Β· 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