dpkg-distaddfile(1)
πΈ dpkg-distaddfile(1) β the dpkg suite's little file-listing bestie πΈ
okay so real talk, this is the manual page for dpkg-distaddfile from the dpkg suite, and it's honestly way less scary than the name makes it sound. it's one tiny tool with one tiny job and it does it flawlessly. let's get into it π
β¨ NAME β¨
dpkg-distaddfile β literally just adds entries to debian/files. that's it. that's the whole personality. π
π¦ SYNOPSIS π¦
dpkg-distaddfile [option...] filename section priority
three arguments, maybe some options, and you're done. slay. β¨
π DESCRIPTION π
okay so here's the vibe: dpkg-distaddfile adds an entry for a named file to debian/files. it's giving "lowkey but essential" β nobody talks about it, everybody needs it.
it takes three non-option arguments, and you literally cannot skip any of them, bestie:
- the filename
- the section for the
.changesfile - the priority for the
.changesfile
and here's the part people get wrong every single time π β the filename should be specified relative to the directory where dpkg-genchanges will expect to find the files, which is usually ... not a pathname relative to the current directory when dpkg-distaddfile is run. read that again. fr fr. it's the number one gotcha and it eats people alive.
π«Ά tiny reminder:..is the usual answer here, but read the sentence above carefully β it's relative to wheredpkg-genchangeslooks, not where you are standing.
π OPTIONS π
-ffiles-list-fileβ read or write the list of files to be uploaded here instead, rather than usingdebian/files. like a "not me using the default" moment. iconic for when you need a different list. π¦-?,--helpβ shows the usage message and dips. instant exit, no drama. β--versionβ shows the version and exits. main character energy, zero further conversation. π
π ENVIRONMENT π
DPKG_COLORSβ sets the color mode, because aesthetics matter obviously. the currently accepted values are:auto(the default),alwaysandnever. supported since dpkg 1.18.5. π¨DPKG_NLSβ if it's set, it gets used to decide whether to activate Native Language Support, also known as internationalization (or i18n) support. accepted values are0and1(the default). supported since dpkg 1.19.0. π
π FILES π
debian/filesβ the list of generated files which are part of the upload being prepared. and yes,dpkg-distaddfilecan be used to add additional files to it, which is literally the entire point of this program. full circle moment. π«
π₯ SEE ALSO π₯
deb-src-files(5)β go read it, bestie, it's the related lore. π
π and that's the whole page. three args, two env vars, one file, one option with a lowercase f glued to its argument, and a help flag. no cap.
mwah π β this has been the dpkg-distaddfile(1) page, brought to you by the dpkg suite, version 1.23.11-dirty, dated 2026-09-09. go add some files to debian/files and remember: .., not your cwd. iykyk π§ββοΈ
π¦ 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