deb-conffiles(5)
π deb-conffiles β package conffiles, bestie edition π
Okay so welcome to deb-conffiles(5) from the dpkg suite β literally the glow-up guide to how a package declares which of its files are conffiles. Yes, we're doing this. Sit down, hydrate, let's go π«Ά
β¨ SYNOPSIS β¨
DEBIAN/conffiles
That's it. That's the whole vibe. A whole file with one job and it ate. π
π DESCRIPTION π
So a package declares its list of conffiles by including a conffiles file in its control archive β that's DEBIAN/conffiles during package creation, iykyk. π¦β¨
This file contains a list of files, one per line, with an optional leading flag separated by whitespace. And listen β the conffiles must be listed as absolute pathnames. No shortcuts, no relative nonsense, we're being grown here. π§
Trailing whitespace will be trimmed, but empty or whitespace-only lines are not accepted β so don't try it, bestie, dpkg is not playing π
Files without a flag should exist in the binary package, otherwise dpkg(1) will ignore them. Yeah, ignore β not even a dramatic exit, just ghosting. π»
Okay now the fun part, there is currently only one flag supported:
remove-on-upgradeβ marks that a conffile needs to be removed on the next upgrade (since dpkg 1.20.6). π§Ήβ¨
β οΈ But these files must not exist in the binary package, because bothdpkg(1)anddpkg-deb(1)will not accept building nor processing such binary packages. That's a hard no, no cap. π
πΈ EXAMPLE πΈ
Like, here's exactly what it looks like, keep it verbatim babe:
/etc/alternatives/README
/etc/cron.daily/dpkg
/etc/dpkg/dpkg.cfg
/etc/logrotate.d/dpkg
remove-on-upgrade /etc/some-old-file.conf
See how they're all absolute paths? See the flag leading that last one? Gorgeous. Iconic. Main character energy. ππ
π¦ SEE ALSO π¦
Go read those too, they're fr fr part of the lore. ππ
β¨ and that's the whole page, bestie β¨
Cute lil sign-off: this was from the dpkg suite, version 1.23.11-dirty, dated 2026-09-09 β yes the version really says dirty, she's a little messy but she works slay π
ππ
π¦ where this page comes from
- arch rolling: dpkg 1.23.11-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms