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
- 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