package post-removal maintainer script · man5 · English
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:
The new-version is passed only since dpkg 1.18.5.
dpkg(1).