Chapter 6. Package maintainer scripts and installation procedure
6.6 Details of configuration
When we configure a package (this happens with
), we first update any
s and then call:
most recently configured version
No attempt is made to unwind after errors during configuration.
If there is no most recently configured version
will pass a null argument.
6.7 Details of removal and/or configuration purging
2 The package's files are removed (except
4 All the maintainer scripts except the
If we aren't purging the package we stop here. Note that packages which have no
s are automatically purged when removed, as there is no dif
ference except for the
, etc.) are removed.
7 The package's file list is removed.
If there are problems during this process, we call
. No other attempt is made to unwind after errors during removal.
Historical note: Truly ancient (pre 1997) versions of
(including the angle brackets) in
this case. Even older ones did not pass a second argument at all, under any circumstance. Note that upgrades using
such an old dpkg version are unlikely to work for other reasons, even if this old argument behavior is handled by
your postinst script.