DH_INSTALLDIRS(1)

✨ DH_INSTALLDIRS(1) ✨

okay bestie, so this is dh_installdirs β€” it lives in the Debhelper fam and honestly? it's the girl who shows up early and makes sure the room is set up before the party. she makes subdirectories in package build directories. that's the whole job. she ate and left no crumbs 🫢


🌸 SYNOPSIS 🌸

dh_installdirs [debhelper options] [-A] [--sourcedir=dir]
[--create-in-sourcedir] [dir ...]

πŸ’… DESCRIPTION πŸ’…

so dh_installdirs is a debhelper program, and her whole thing β€” her entire main character moment β€” is creating subdirectories in package build directories. that's it. that's the assignment. πŸ’–

but here's the gag: lots of packages can literally just not call her at all and be totally fine. no cap. the other dh_* commands are expected to create directories as needed on their own, so if you skip her, she's not gonna text you about it. it's giving low maintenance. ✨


πŸŽ€ FILES πŸŽ€

  • debian/package.dirs β€” this file lists directories to be created in package. like, a little to-do list of vibes to manifest.

ngl, generally there's no need to list directories created by the upstream build system, or directories that other debhelper commands already need. she's not trying to do somebody else's homework bestie. πŸ™ˆ

also!! it supports substitution variables in compat 13 and later, as documented in debhelper(7). so if you're on compat 13+, slay, go off. πŸ‘‘


⭐ OPTIONS ⭐

  • -A, --all β€” create any directories specified by command line parameters in ALL packages acted on, not just the first. yes queen, we're doing this for everyone, not just the favorite child. πŸ’…
  • --create-in-sourcedir, --no-create-in-sourcedir β€” whether to create the specified directories in the source directory (usually debian/tmp) in addition to in the package build directory (usually debian/package). two locations, double the slay. ✨

the default is --no-create-in-sourcedir.

  • --sourcedir=dir β€” treat dir as the source directory for the packages acted on instead of the default (which is usually debian/tmp). you're picking a different hangout spot, iconic.
okay important bestie: this option is dependent on the --create-in-sourcedir option. when --no-create-in-sourcedir is in effect, this option does nothing in dh_installdirs. literally nothing. she will ignore you. πŸ’€
  • dir ... β€” create these directories in the package build directory of the first package acted on. (or in ALL of the packages if -A is specified.) the first one gets the gift unless you say -A, iykyk. 🎁

πŸ”₯ SEE ALSO πŸ”₯

this program is a part of debhelper. 🧚


πŸ‘‘ AUTHOR πŸ‘‘

Joey Hess <joeyh@debian.org> β€” the legend, the blueprint, the original. 🌈


and that's the whole page babes πŸ’– this little number is from debhelper version 14.5ubuntu1, dated 2026-09-21. drink some water, go create a directory, and remember: she's just a program and she loves you. periodt. πŸŽ€πŸ¦‹πŸŒΈβ­πŸ’œ

πŸ“¦ where this page comes from