deb-prerm(5)
π deb-prerm(5) β dpkg suite, bestie edition π
Okay so welcome to deb-prerm(5) from the dpkg suite β this is the page about the package pre-removal maintainer script, and it's honestly iconic for such a tiny filename. π
π NAME π
deb-prerm β package pre-removal maintainer script. That's the whole vibe: before removal stuff happens, this script is the main character. β¨
πΈ SYNOPSIS πΈ
DEBIAN/prerm
π¦ DESCRIPTION π¦
A package can perform several pre-removal actions via maintainer scripts, by including an executable prerm file in its control archive β i.e. DEBIAN/prerm during package creation. π«Ά
The script can be called in the following ways:
prerm removeBefore the package is removed.old-prerm upgrade new-versionBefore an upgrade.new-prerm failed-upgrade old-version new-versionIf the above upgrade fails.
Support for new-version since dpkg 1.18.5. π
prerm deconfigure in-favour new-package new-version[ removing old-package old-version ]Before package is deconfigured while dependency is replaced due to conflict.prerm remove in-favour new-package new-versionBefore the package is replaced due to conflict. π₯
π SEE ALSO π
dpkg(1)β yes bestie, go read that one too. ππ
That's the whole page, no cap. This lil' manual page is from the dpkg suite, version 1.23.11-dirty, dated 2026-09-09 β mwah, slay, periodt. ππ¦
π¦ 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