DH_GERMINATE_CLEAN(1)

πŸ’… dh_germinate_clean(1)

okay bestie, so this is a page from the Debhelper manual, and it's about a lil helper called dh_germinate_clean. she's niche but she's iconic, and she's about to make your source packages look tidy. ✨


πŸŽ€ NAME πŸŽ€

dh_germinate_clean β€” the girl who cleans up all the files that germinate-update-metapackage left lying around. no cap, that's literally her whole job. πŸ§ΉπŸ’–


🌸 SYNOPSIS 🌸

dh_germinate_clean [debhelper options]

πŸ¦‹ DESCRIPTION πŸ¦‹

so dh_germinate_clean is a debhelper program, which means she plays nice with the whole debhelper crew. what she does is clean up certain files that germinate-update-metapackage creates β€” and listen, those files are genuinely useful for debugging, they're not villains or anything. but they should not be appearing in source packages, and that's the vibe check they fail. πŸ™ˆ

so she removes:

  • any *.old files that match defined seeds β€” and when we say "defined seeds" we mean the ones listed in the metapackage-map file, put there by a previous run of germinate-update-metapackage πŸ‘‘
  • and also the debootstrap-dir file πŸ’€ bye girl

that's it. that's the whole thing. she's efficient, she's clean, she ate. πŸ’…


✨ EXAMPLES ✨

most of the time you don't even call her directly β€” she gets called indirectly in a rules file, via the dh command. like this:

%:
    dh $@ --with germinate
⚠️ heads up bestie: to use this form you must build-depend on at least debhelper (>= 7.0.8). and honestly, in any case, to use this program at all you must build-depend on at least germinate (>= 1.18). no shortcuts, that's the rule. πŸ”₯

she can also be called directly in the clean target β€” any time before dh_clean, whenever you feel like it:

clean:
    dh_testdir
    dh_germinate_clean
    dh_clean

see how she shows up right before dh_clean? main character placement. 🫢


🌈 SEE ALSO 🌈

and also, fun fact: this program is a part of germinate. she belongs to something bigger. family. πŸ₯Ή


πŸ’œ AUTHOR πŸ’œ

Colin Watson <cjwatson@ubuntu.com> β€” icon behavior, honestly. πŸ’–

Copyright (C) 2009 Canonical Ltd., licensed under the GNU GPL v2 or later.


okay that's the whole page, you're officially germinate-pilled. go forth and have the cleanest source packages of your life, bestie. πŸŽ€πŸ¦‹βœ¨

2.50.2+willsync2 Β· 2026-09-25 Β· DH_GERMINATE_CLEAN(1) β€” mwah, love u, bye πŸ’‹

πŸ“¦ where this page comes from