DOKK / manpages / debian 10 / dpkg-dev / deb-postinst.5.en
deb-postinst(5) dpkg suite deb-postinst(5)

deb-postinst - package post-installation maintainer script

postinst

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

The script can be called in the following ways:

After the package was installed.
After the package was triggered.
If prerm fails during upgrade or fails on failed upgrade.
If prerm fails during removal.

[ removing old-package old-version ]
If prerm fails during deconfiguration of a package.
If prerm fails during replacement due to conflict.

dpkg(1).

2022-05-24 1.19.8