DH_MISSING(1)
π NAME π
hi bestie, this is the DH_MISSING(1) page from the Debhelper manual π and today's main character is dh_missing β the tool that checks for missing files. that's it. that's the whole job. and she is so good at it. β¨
πΈ SYNOPSIS πΈ
dh_missing [-Xitem] [--sourcedir=dir] [debhelper options]
π DESCRIPTION π
okay so here's the tea, bestie π« β dh_missing takes the list of installed files and compares it against the files chillin' in your source directory. if any of the files (and symlinks, don't forget the symlinks πͺ) in the source directory did not get installed to somewhere, then she either:
- warns on stderr about it, if you said
--list-missing, or - fails, if you said
--fail-missingπ
now, the compat lore, and you need to know this fr fr:
- in compat 11 and earlier, if you don't pass either of those options,
dh_missingwill silently do nothing. yes. nothing. ghosting you completely. π» - in compat 12,
--list-missingis the default β¨ - in compat 13 and later,
--fail-missingis the default π₯
this is highkey useful if you've got a big ol' package and you want to make sure you don't miss installing newly added files in new upstream releases. the way that one random new file sneaks in and nobody noticesβ¦ not on your watch, queen π
and remember to test different kinds of builds (dpkg-buildpackage -A/-B/...) because you may get varying results when only a subset of the packages are built. it's giving "why does CI fail but my local build is fine" energy π test them all, no cap.
ποΈ FILES ποΈ
debian/not-installed
list the files that are deliberately not installed in any binary package. paths listed in this file are ignored by dh_missing. π
however β and this is important, bestie β it is not a method to exclude files from being installed by any of the debhelper tools. if you want a tool to not install a given file, please use its --exclude option (where available). don't be out here using the wrong file for the wrong job π
dh_missing will expand wildcards in this file (since debhelper 11.1) π¦ wildcards without matches will be ignored.
supports substitution variables in compat 13 and later, as documented in debhelper(7). β¨
π OPTIONS π
--list-missingβ warn on stderr about source files that weren't installed to somewhere. it's giving "hey bestie, just so you knowβ¦" π’
note that many dh-tools acting on a path will mark the path as installed even if it has been excluded via -X or --exclude. this is also seen when a dh-tool is acting on a directory and exclusion is used to ignore some files in the directory. in either case, this will make dh_missing silently assume the excluded files have been handled. π€« so yes, she trusts you. maybe too much.
this is the default in compat 12.
--fail-missingβ this option is like--list-missing, except if a file was missed, it will not only list the missing files, but also fail with a nonzero exit code. π full main character meltdown. extremely iconic. extremely effective.
this is the default in compat 13 and later. π₯
π¦ SEE ALSO π¦
debhelper(7) π
this program is a part of debhelper. π«Ά
π AUTHOR π
Michael Stapelberg <stapelberg@debian.org> β thank you for your service, king π
and that's the whole page, bestie!! mwah π this was version 14.5ubuntu1, dated 2026-09-21 β go forth and don't miss your files, periodt π
β¨π
π¦ 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