1DH_INSTALLALTERNATIVES(1) Debhelper DH_INSTALLALTERNATIVES(1)
2
3
4
6 dh_installalternatives - install declarative alternative rules
7
9 dh_installalternatives [debhelperĀ options]
10
12 dh_installalternatives is a debhelper program that is responsible for
13 parsing the declarative alternatives format and insert the relevant
14 maintscripts snippets to interface with update-alternatives(1)
15
17 debian/package.alternatives
18 An example of the format:
19
20 Name: editor
21 Link: /usr/bin/editor
22 Alternative: /usr/bin/vim.basic
23 Dependents:
24 /usr/share/man/man1/editor.1.gz editor.1.gz /usr/share/man/man1/vim.1.gz
25 /usr/share/man/fr/man1/editor.1.gz editor.fr.1.gz /usr/share/man/fr/man1/vim.1.gz
26 /usr/share/man/it/man1/editor.1.gz editor.it.1.gz /usr/share/man/it/man1/vim.1.gz
27 /usr/share/man/pl/man1/editor.1.gz editor.pl.1.gz /usr/share/man/pl/man1/vim.1.gz
28 /usr/share/man/ru/man1/editor.1.gz editor.ru.1.gz /usr/share/man/ru/man1/vim.1.gz
29 Priority: 50
30
31 The fields Link, Name, Alternative, and Priority are mandatory and
32 correspond to the update-alternatives(1) --install parameters link,
33 name, path, and priority respectively.
34
35 The Dependents field is optional and consists of one or more lines.
36 Each non-empty line must contain exactly 3 space separated values
37 that match (in order) the values passed to the --slave parameter
38 for update-alternatives(1).
39
41 -n, --no-scripts
42 Do not modify postinst/postrm/prerm scripts.
43
45 debhelper(7)
46
47 This program is a part of debhelper.
48
49
50
5113.5.2 2021-11-02 DH_INSTALLALTERNATIVES(1)