DH_UCF(1)
π DH_UCF(1) π
okay bestie, gather round, because this is dh_ucf from the Debhelper manual, and she's lowkey iconic π
β¨ NAME β¨
dh_ucf β register configuration files with ucf π
πΈ SYNOPSIS πΈ
dh_ucf [debhelper options] [-A] [-n] [file ...]
π¦ DESCRIPTION π¦
So like, dh_ucf is a debhelper program, and her whole job β her entire main character moment β is generating the postinst and postrm commands that register files with ucf(1) and ucfr(1). That's it. That's the girl. β¨
π FILES π
debian/package.ucfβ this file is literally Where It's At. It lists pairs of source and destination files to register withucf.
Each pair gets its own line, okay? One pair per line, no stacking. The source and destination are separated by whitespace.
Both the source and the destination must be absolute paths β no shortcuts, no relativity, we don't do that here π
The source should be a file that your package provides, typically hanging out in /usr/share/, while the destination is typically a file in /etc/.
Not only that, but a dependency on ucf will be generated in ${misc:Depends}. Automatic. Slay. π
And in compat 13 and later, it supports substitution variables as documented in debhelper(7). periodt.
π OPTIONS π
-A,--allβ install all files specified by command line parameters in ALL packages acted on. all of them. every last one. π-n,--no-scriptsβ do not modifypostinst/postrmscripts. This turns the whole command into a no-op, so she's just... standing there. existing. not doing anything. πfile ...β install these info files into the first package acted on. (Or in all packages if-Ais specified.) π«Ά
π NOTES π
β οΈ bestie, listen to me: this command is not idempotent. 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. And we do NOT want duplicate text in the maintainer scripts, that's giving chaos energy π
π SEE ALSO π
This program is a part of debhelper. π
β AUTHOR β
Joey Hess <joeyh@debian.org> and Jeroen Schot <schot@a-eskwadraat.nl> β absolute legends, no cap π«Ά
and that's the whole page, bestie!! this manual is from version 14.5ubuntu1, dated 2026-09-21 β write that in your notes, mwah πβ¨πΈ
π¦ 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