deb-postinst(5)
β¨ NAME β¨
Okay so bestie, this is deb-postinst(5) β the manual page for the package post-installation maintainer script. Itβs giving βthe script that handles post-install business,β and we are gonna get you fluent in it, no cap. π
π SYNOPSIS π
The synopsis is literally just this path, periodt:
DEBIAN/postinst
Thatβs the whole vibe. β¨
π DESCRIPTION π
A package can perform several post-installation actions via maintainer scripts, by including an executable postinst file in its control archive β thatβs DEBIAN/postinst during package creation, iykyk. So yes: executable file, control archive, package creation. Slay. π«Ά
The script can be called in the following ways β keep these exact forms in your notes, bestie, fr fr:
postinst configure old-versionβ after the package was installed. πΈpostinst triggered "trigger-name..."β after the package was triggered. The list of space-separated trigger-names is passed as the second argument. Yes, space-separated, all of them, thatβs the whole point. π¦old-postinst abort-upgrade new-versionβ ifprermfails during upgrade or fails on failed-upgrade. πold-postinst abort-removeβ ifprermfails during remove. πpostinst abort-deconfigure in-favour new-package new-versionwith the bracketed continuation[ removing old-package old-version ]β ifprermfails during deconfigure in-favour of a package. Hereβs the exact shape:
postinst abort-deconfigure in-favour new-package new-version
[ removing old-package old-version ]
The bracket line is part of the form, not a drill. π
postinst abort-remove in-favour new-package new-versionβ ifprermfails during remove in-favour for replacement due to conflict. π
Vibe check: all of those conditions are exact, and prerm is the main character of the βif it failsβ moments. Periodt. π
π SEE ALSO π
dpkg(1)β go read it, bestie, itβs iconic and itβs literally the reference. πβ
This page is from the dpkg suite, version 1.23.11-dirty, dated 2026-09-09 β and itβs literally deb-postinst(5). Stay executable, bestie πβ¨π«Ά
π¦ 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