DH_PREP(1)

๐Ÿ’– DH_PREP โ€” bestie edition โœจ

okay so this is dh_prep, a Debhelper program, and it lives in section 1 of the manual. buckle up, it's short but she's important. ๐ŸŽ€


๐ŸŒธ NAME ๐ŸŒธ

dh_prep โ€” perform cleanups in preparation for building a binary package


โœจ SYNOPSIS โœจ

dh_prep [debhelper options] [-Xitem]

๐Ÿงน DESCRIPTION ๐Ÿงน

so bestie, dh_prep is a debhelper program and her whole job is doing some file cleanups in preparation for building a binary package. this is literally what dh_clean -k used to do โ€” so if you ever see that old thing floating around in ancient docs, it's giving retired, and this is her glow-up. ๐Ÿ’…

here's what she yeets into the void:

  • the package build directories
  • debian/tmp
  • some temp files that get generated when you're building a binary package

and like, where does she go? typically she's run at the top of the binary-arch and binary-indep targets โ€” OR at the top of a target such as install that those two depend on. main character placement, honestly. she goes first. ๐Ÿ‘‘


๐ŸŽ€ OPTIONS ๐ŸŽ€

  • -Xitem, --exclude=item โ€” exclude files that contain item anywhere in their filename from being deleted, even if they would normally be deleted. and yes, you can use this option multiple times to build up a whole lil list of things to protect. stacking exclusions like accessories, we love to see it. ๐Ÿ’–

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

this program is a part of debhelper. ๐Ÿ’œ


๐Ÿฆ‹ AUTHOR ๐Ÿฆ‹

Joey Hess <joeyh@debian.org> โ€” thank you for your service king ๐Ÿซถ


k that's the whole page bestie, no cap. every flag, every path, every vibe, preserved. ๐ŸŒˆ

sign-off time โ€” this gorgeous lil page comes to you from version 14.5ubuntu1, dated 2026-09-21, and that's the tea. go forth and clean up your build dirs, you absolute legend. ๐Ÿ’…โœจ๐ŸŒธ

๐Ÿ“ฆ where this page comes from