deb-postrm(5)
π deb-postrm(5) β package post-removal maintainer script π
Ok so bestie, this is the manual page for deb-postrm(5): the whole vibe of what a package's post-removal maintainer script can do. Itβs giving βcleanup eraβ and honestly? Iconic.
π NAME π
deb-postrm β package post-removal maintainer script
β¨ SYNOPSIS β¨
DEBIAN/postrm
π¦ DESCRIPTION π¦
A package can perform several post-removal actions via maintainer scripts, bestie. The way it does that is by including an executable postrm file in its control archive (i.e. DEBIAN/postrm during package creation). No cap, thatβs the whole setup.
The script can be called in the following ways:
postrm removeβ after the package was removed. Cleanup arc activated. β¨postrm purgeβ after the package was purged. Full delete energy. πold-postrm upgrade new-versionβ after the package was upgraded.new-postrm failed-upgrade old-version new-versionβ if the above upgrade call fails. Also, support fornew-versionsincedpkg 1.18.5.postrm disappear overwriter-package overwriter-versionβ after all of the packages files have been replaced.new-postrm abort-installβ ifpreinstfails during install.new-postrm abort-install old-version new-versionβ ifpreinstfails during install for an upgrade of a removed package. Also, support fornew-versionsincedpkg 1.18.5.new-postrm abort-upgrade old-version new-versionβ ifpreinstfails during upgrade. Also, support fornew-versionsincedpkg 1.18.5.
π SEE ALSO π
dpkg(1)β go read that too, bestie.
π«Ά cute sign-off: this page is from the dpkg suite, version1.23.11-dirty, dated2026-09-09. Thatβs the tea. π
π¦ where this page comes from
- arch rolling: dpkg 1.23.11-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms