DH_PERL(1)
π DH_PERL π
okay bestie, so this is dh_perl from the Debhelper manual (section 1, we love a classic) β and she's honestly doing so much for you π«Ά
β¨ NAME β¨
dh_perl β calculates Perl dependencies and cleans up after MakeMaker. yes literally both. she does the math and the tidying. main character behaviour fr fr π
β¨ SYNOPSIS β¨
dh_perl [debhelper options] [-d] [library dirs ...]
β¨ DESCRIPTION β¨
so dh_perl is a debhelper program, and her whole job is generating the ${perl:Depends} substitutions and adding them into substvars files. iconic, no notes. π
she'll go looking at all the Perl scripts and modules in your package, and use everything she finds to generate a dependency on perl or perlapi. then that dependency gets substituted into your package's control file β wherever you dropped the token ${perl:Depends}. so like, put the token there and she fills it in. that's the vibe. β¨
oh and also? she cleans up empty directories that MakeMaker can generate when installing Perl modules. queen of the after-party cleanup π§
π OPTIONS π
-dβ okay so in some specific cases you might want to depend on perl-base instead of the fullperlpackage. if that's you, pass-danddh_perlwill generate a dependency on the correct base package instead. this is only necessary for some packages that are included in the base system. lowkey niche but valid π
ngl bestie, heads up: this flag may cause no dependency onperl-baseto be generated at all.perl-baseis Essential, so its dependency can be left out β unless a versioned dependency is needed. so don't come crying to me when there's nothing there π
-Vβ by default, scripts and architecture independent modules don't depend on any specific version of perl. the-Voption makes the current version of theperlpackage (orperl-baseif you're also passing-d) be specified. so like, pin it down. lock her in. π₯library dirsβ if your package installs Perl modules in non-standard directories, you can makedh_perlcheck those directories by passing their names on the command line π«Ά by default she only checks thevendorlibandvendorarchdirectories. so if you're being β¨differentβ¨, tell her where to look.
π CONFORMS TO π
- Debian policy, version 3.8.3
- Perl policy, version 1.20
π SEE ALSO π
this program is a part of debhelper. found family, your honour π₯Ή
π AUTHOR π
Brendan O'Dea <bod@debian.org> β thank you for your service, legend π
and that's the whole page bestie, you ate that π dh_perl is version 14.5ubuntu1, dated 2026-09-21, and that's the tea. go forth and let her handle your Perl deps, she's got you π¦πΈ
π¦ 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