# man > deb-postinst(5)

[_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 **remove**.

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

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

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

1.22.6                                       2026-05-06                              [_deb-postinst_(5)](https://www.chedong.com/phpMan.php/man/deb-postinst/5/markdown)
