DH_INSTALLALTERNATIVES(1)
β¨ NAME β¨
dh_installalternatives β bestie, this one installs declarative alternative rules π
π¦ SYNOPSIS π¦
dh_installalternatives [debhelper options]
π DESCRIPTION π
okay so boom: dh_installalternatives is a debhelper program, and its whole job β its entire main character purpose β is parsing the declarative alternatives format and inserting the relevant maintscripts snippets so everything can interface with update-alternatives(1). no cap. that's the vibe. π
π FILES π
debian/package.alternativesβ here's what the format looks like, bestie, and yes this is a real example:
Name: editor
Link: /usr/bin/editor
Alternative: /usr/bin/vim.basic
Dependents:
/usr/share/man/man1/editor.1.gz editor.1.gz /usr/share/man/man1/vim.1.gz
/usr/share/man/fr/man1/editor.1.gz editor.fr.1.gz /usr/share/man/fr/man1/vim.1.gz
/usr/share/man/it/man1/editor.1.gz editor.it.1.gz /usr/share/man/it/man1/vim.1.gz
/usr/share/man/pl/man1/editor.1.gz editor.pl.1.gz /usr/share/man/pl/man1/vim.1.gz
/usr/share/man/ru/man1/editor.1.gz editor.ru.1.gz /usr/share/man/ru/man1/vim.1.gz
Priority: 50
The fields Link, Name, Alternative, and Priority are mandatory β like, you literally cannot skip them β and they correspond to the update-alternatives(1) --install parameters link, name, path, and priority respectively. π«Ά
The Dependents field is optional and consists of one or more lines. Each non-empty line must contain exactly 3 space separated values that match (in order) the values passed to the --slave parameter for update-alternatives(1). count them. three. don't be out here making it four. π
π OPTIONS π
-n,--no-scriptsβ do not modifypostinst/postrm/prermscripts. hands off, periodt. π
πΈ SEE ALSO πΈ
debhelper(7)- This program is a part of debhelper. π
π§ and that's the whole thing, bestie β go forth and let dh_installalternatives handle your alternatives like the icon it is π
mwah π this page came from debhelper version 14.5ubuntu1, dated 2026-09-21 β slay, no notes β¨
π¦ 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