{
    "mode": "man",
    "parameter": "deb-postinst",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/deb-postinst/5/json",
    "generated": "2026-05-30T07:08:38Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "deb-postinst - package post-installation maintainer script\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "DEBIAN/postinst",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "A package can perform several post-installation actions via maintainer scripts, by including\nan executable postinst file in its control archive (i.e. DEBIAN/postinst during package\ncreation).\n\nThe script can be called in the following ways:\n\npostinst configure old-version\nAfter the package was installed.\n\npostinst triggered \"trigger-name...\"\nAfter the package was triggered.  The list of space-separated trigger-names is passed as\nthe second argument.\n\nold-postinst abort-upgrade new-version\nIf prerm fails during upgrade or fails on failed upgrade.\n\nold-postinst abort-remove\nIf prerm fails during removal.\n\npostinst abort-deconfigure in-favour new-package new-version\n       [ removing old-package old-version ]\nIf prerm fails during deconfiguration of a package.\n\npostinst abort-remove in-favour new-package new-version\nIf prerm fails during replacement due to conflict.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "dpkg(1).\n\n\n\n1.21.1                                       2025-09-09                              deb-postinst(5)",
            "subsections": []
        }
    },
    "summary": "deb-postinst - package post-installation maintainer script",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "dpkg",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dpkg/1/json"
        }
    ]
}