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 with ucf.

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 modify postinst/postrm scripts. 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 -A is 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