deb-postrm(5) dpkg suite deb-postrm(5)

deb-postrm - package post-removal maintainer script

DEBIAN/postrm

A package can perform several post-removal actions via maintainer scripts, by including an executable postrm file in its control archive (i.e. DEBIAN/postrm during package creation).

The script can be called in the following ways:

After the package was removed.
After the package was purged.
After the package was upgraded.
If the above upgrade call fails.

The new-version is passed only since dpkg 1.18.5.

After all of the packages files have been replaced.
If preinst fails during install.
If preinst fails during install for an upgrade of a removed package.

The new-version is passed only since dpkg 1.18.5.

If preinst fails during upgrade.

The new-version is passed only since dpkg 1.18.5.

dpkg(1).

2024-08-01 1.22.11