# deb-postinst(5) - man - phpMan

[deb-postinst(5)](https://www.chedong.com/phpMan.php/man/deb-postinst/5/markdown)                              dpkg suite                              [deb-postinst(5)](https://www.chedong.com/phpMan.php/man/deb-postinst/5/markdown)



## NAME
       deb-postinst - package post-installation maintainer script

## SYNOPSIS
### DEBIAN/postinst

## DESCRIPTION
       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:

       _postinst_ **configure** _old-version_
           After the package was installed.

       _postinst_ **triggered** "_trigger-name..._"
           After the package was triggered.  The list of space-separated _trigger-name_s is passed as
           the second argument.

       _old-postinst_ **abort-upgrade** _new-version_
           If _prerm_ fails during upgrade or fails on failed upgrade.

       _old-postinst_ **abort-remove**
           If _prerm_ fails during removal.

       _postinst_ **abort-deconfigure** **in-favour** _new-package_ _new-version_
              [ **removing** _old-package_ _old-version_ ]
           If _prerm_ fails during deconfiguration of a package.

       _postinst_ **abort-remove** **in-favour** _new-package_ _new-version_
           If _prerm_ fails during replacement due to conflict.

## SEE ALSO
       [**dpkg**(1)](https://www.chedong.com/phpMan.php/man/dpkg/1/markdown).



1.21.1                                       2025-09-09                              [deb-postinst(5)](https://www.chedong.com/phpMan.php/man/deb-postinst/5/markdown)
