man > deb-conffiles(5)

📝 NAME

deb-conffiles - package conffiles

🚀 Quick Reference

Use CaseCommandDescription
📄 Declare conffiles in packageDEBIAN/conffilesList absolute paths of configuration files, one per line
🗑️ Mark conffile for removal on upgraderemove-on-upgrade /pathAdd remove-on-upgrade flag before the path; file must NOT exist in the binary package
🔍 Verify conffile listdpkg --get-selections | grep installBut for conffiles specifically, inspect DEBIAN/conffiles in the .deb archive

📋 SYNOPSIS

📁 DEBIAN/conffiles

📖 DESCRIPTION

A package declares its list of conffiles by including a conffiles file in its control archive (i.e. DEBIAN/conffiles during package creation).

This file contains a list of files, one per line, with an optional leading flag separated by whitespace. The conffiles must be listed as absolute pathnames. Trailing whitespace will be trimmed, but empty or whitespace-only lines are not accepted.

Files without a flag should exist in the binary package, otherwise dpkg(1) will ignore them.

There is currently only one flag supported, remove-on-upgrade, to mark that a conffile needs to be removed on the next upgrade (since dpkg 1.20.6). These files must not exist in the binary package, as both dpkg(1) and dpkg-deb(1) will not accept building nor processing such binary packages.

💡 EXAMPLE

/etc/alternatives/README
/etc/cron.daily/dpkg
/etc/dpkg/dpkg.cfg
/etc/logrotate.d/dpkg
remove-on-upgrade /etc/some-old-file.conf

🔗 SEE ALSO

dpkg-deb(1), dpkg(1).


1.21.1 2025-09-09 deb-conffiles(5)

deb-conffiles(5)
📝 NAME 🚀 Quick Reference 📋 SYNOPSIS
📁 DEBIAN/conffiles
📖 DESCRIPTION 💡 EXAMPLE 🔗 SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-12 06:33 @2600:1f28:365:80b0:6f72:a904:73b0:e266
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!