{
    "content": [
        {
            "type": "text",
            "text": "# deb-postinst(5) (man)\n\n**Summary:** deb-postinst - package post-installation maintainer script\n\n## See Also\n\n- dpkg(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (1 lines) — 1 subsections\n  - DEBIAN/postinst (1 lines)\n- **DESCRIPTION** (26 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\ndeb-postinst - package post-installation maintainer script\n\n### SYNOPSIS\n\n#### DEBIAN/postinst\n\n### DESCRIPTION\n\nA 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\n### SEE ALSO\n\ndpkg(1).\n\n\n\n1.21.1                                       2025-09-09                              deb-postinst(5)\n\n"
        }
    ],
    "structuredContent": {
        "command": "deb-postinst",
        "section": "5",
        "mode": "man",
        "summary": "deb-postinst - package post-installation maintainer script",
        "synopsis": "",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "dpkg",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/dpkg/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "DEBIAN/postinst",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 26,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}