DH_INSTALLTMPFILES(1)
π dh_installtmpfiles β bestie edition π
okay so this is a page from the Debhelper manual, section 1. it's called dh_installtmpfiles and honestly? she's a little icon. let's get into it π«Ά
β¨ NAME β¨
dh_installtmpfiles β install tmpfiles.d configuration files π
β¨ SYNOPSIS β¨
dh_installtmpfiles [debhelper options][--name=name]
β¨ DESCRIPTION β¨
so dh_installtmpfiles is a debhelper program, and her whole job is installing the tmpfiles.d configuration files that the package maintainer supplies (think stuff for systemd-tmpfiles, iykyk). π
she's also out here finding the tmpfiles.d configuration files that a package installs, and generating postinst code blocks so those tmpfiles.d configs get activated when the package is installed. those little snippets get added to the maintainer scripts by dh_installdeb(1). slay. β¨
in compat 14+, the tmpfiles.d files are copied into the postrm script, and they get used with systemd-tmpfiles --remove after the package is removed, and --purge when the package is purged. meaning: you can use the tmpfiles.d mechanism to clean up files that aren't needed anymore after a package has been removed or purged. lowkey so useful. πΈ
also, dh_installtmpfiles will add dependencies for any installed tmpfiles configuration files via ${misc:Depends}. she's thorough like that. π
β¨ OPTIONS β¨
--name=nameβ this option controls two things at once, periodt: the prefix used for looking up maintainer-provided tmpfiles.d configuration files (the ones mentioned down in the FILES section), and the base name used for the installed version of the file. one flag, two jobs, main character energy π
β¨ FILES β¨
debian/package.tmpfilesβ if this exists, it gets installed intousr/lib/tmpfiles.d/in the package build directory. π¦debian/package.tmpfileβ deprecated name fordebian/package.tmpfiles. β οΈ yeah she's old, don't use her.
β¨ NOTES β¨
π¨ okay bestie this one matters: this command is not idempotent. dh_prep(1) should be called between invocations of this command, with the same arguments. otherwise, it may cause multiple instances of the same text to be added to maintainer scripts. no cap, that gets messy fast. π
β¨ SEE ALSO β¨
and that's the whole vibe check, bestie π go forth and install those tmpfiles π
this page is from Debhelper, version 14.5ubuntu1, dated 2026-09-21. mwah, take care of her πβ¨
π¦ 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