DH_AUTO_INSTALL(1)
π DH_AUTO_INSTALL(1) π
okay bestie, buckle up β this is dh_auto_install, one of the lil legends from the debhelper manual. it's giving "I do your installs so you don't have to" energy, and honestly? slay. π
β¨ NAME β¨
dh_auto_install β automatically runs make install or similar π«Ά
πΈ SYNOPSIS πΈ
dh_auto_install [build system options] [debhelper options] [-- params]
π¦ DESCRIPTION π¦
so basically, dh_auto_install is a debhelper program whose whole personality is trying to automatically install built files for you. it does this by running the correct command for whatever build system it sniffs out that your package is using. no cap. π
like, if there's a Makefile and it has an install target, then it does the thing by running make (or MAKE if that environment variable is set β respect the env var, fr fr). if there's a setup.py or a Build.PL, that's what it uses instead. π
β οΈ heads up: the Ant build system does not support installation, so dh_auto_install will not install files built using Ant. it literally can't, don't ask her to. π
in compat 14 or later, dh_auto_install uses debian/tmp as the default --destdir, and you should move the files from there to the appropriate package build directory using dh_install(1) or similar tools. however β and this is the fun part β if the single-binary addon for dh(1) is activated, then it will pass an explicit --destdir=debian/package/ to dh_auto_install. cute, right? β¨
for earlier compat levels (the vintage eras π), unless the --destdir option is specified, the files get installed into debian/package/ if there's only one binary package. but in the multiple binary package case, the files are instead installed into debian/tmp/, and you should move them from there to the appropriate package build directory using dh_install(1) or similar tools. same ritual, different folder. π§
DESTDIR is used to tell make where to install the files. and if the Makefile was generated by MakeMaker from a Makefile.PL, it will automatically set PREFIX=/usr too, since such Makefiles need that. it's just being a good friend. π
this is intended to work for about 90% of packages. if it doesn't work, or it tries to use the wrong install target β bestie, you're encouraged to skip using dh_auto_install entirely and just run make install manually. no shame in doing it by hand. π
π OPTIONS π
see "BUILD SYSTEM OPTIONS" in debhelper(7) for a list of common build system selection and control options. that's where the rest of the lore lives. π
--destdir=directory β install files into the specified directory. if this option isn't specified, the destination directory is determined automatically, as described in the "DESCRIPTION" section. she'll figure it out herself. π--params β pass params to the program that is run, after the parameters thatdh_auto_installusually passes. extra args, delivered directly, no middleman. β¨
π SEE ALSO π
this program is a part of debhelper. it's in the family. π«Ά
π AUTHOR π
Joey Hess <joeyh@debian.org>
and that's the whole vibe check! this page is from version 14.5ubuntu1, dated 2026-09-21 β periodt, that's the source and the date, no further questions. go install something, bestie π ππ
π¦ 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