1deb-prerm(5)                      dpkg suite                      deb-prerm(5)
2
3
4

NAME

6       deb-prerm - package pre-removal maintainer script
7

SYNOPSIS

9       DEBIAN/prerm
10

DESCRIPTION

12       A package can perform several pre-removal actions via maintainer
13       scripts, by including an executable prerm file in its control archive
14       (i.e. DEBIAN/prerm during package creation).
15
16       The script can be called in the following ways:
17
18       prerm remove
19           Before the package is removed.
20
21       old-prerm upgrade new-version
22           Before an upgrade.
23
24       new-prerm failed-upgrade old-version new-version
25           If the above upgrade fails.
26
27           The new-version is passed only since dpkg 1.18.5.
28
29       prerm deconfigure in-favour new-package new-version
30           [ removing old-package old-version ]
31           Before package is deconfigured while dependency is replaced due to
32           conflict.
33
34       prerm remove in-favour new-package new-version
35           Before the package is replaced due to conflict.
36

SEE ALSO

38       dpkg(1).
39
40
41
421.21.21                           2023-02-25                      deb-prerm(5)
Impressum