DH_MD5SUMS(1)

πŸ’– dh_md5sums β€” the Debhelper manual, bestie edition πŸ’–

okay so boom: this is dh_md5sums, straight outta the Debhelper manual. Sit down, grab a boba, we're gonna make a checksum file together and it's gonna be so cute.


✨ NAME ✨

dh_md5sums β€” generate DEBIAN/md5sums file πŸŽ€


🌸 SYNOPSIS 🌸

dh_md5sums [debhelper options] [-x] [-Xitem] [--include-conffiles]

πŸ¦‹ DESCRIPTION πŸ¦‹

So dh_md5sums is a debhelper program, and its whole entire job β€” its main character purpose, its Roman Empire β€” is generating a DEBIAN/md5sums file. And what's in that file? The md5sums of each file in the package, one per file. That's it. That's the gig. πŸ’…

These files are the ones dpkg --verify uses, and the debsums(1) program uses them too. So like, they matter, they're not just decorative.

Now for the plot twist 🫣: all files in DEBIAN/ are omitted from the md5sums file. Gone. Not invited. And all conffiles are omitted too β€” unless you use the --include-conffiles switch, in which case they get to come to the party after all.

And the glow-up at the end: the md5sums file gets installed with proper permissions and ownerships. Grown-up, responsible, hydrated, has a skincare routine. ✨


πŸ‘‘ OPTIONS πŸ‘‘

  • -Xitem, --exclude=item β€” Exclude files that contain item anywhere in their filename from being listed in the md5sums file. Anywhere, bestie β€” doesn't matter if it's the start, middle or end of the name, if item is in there, it is not getting listed. πŸ™ˆ
ngl you'll also spot -x and --include-conffiles sitting in the synopsis up there β€” --include-conffiles is the one keeping conffiles in the list, and -x is chilling right alongside it. 🫢

πŸ’œ SEE ALSO πŸ’œ

This program is a part of debhelper. 🧚


⭐ AUTHOR ⭐

Joey Hess <joeyh@debian.org>


🌈 that's the whole page, periodt. no cap, every flag, file, and footnote made it in β€” not me being thorough and adorable at the same time. πŸ’–

stay checksummed and slay, angel πŸŽ€πŸ¦‹

14.5ubuntu1 Β· 2026-09-21 Β· DH_MD5SUMS(1) β€” yeah that's the version, the date, and the manual section, signed off with a kiss πŸ’‹

πŸ“¦ where this page comes from