{
    "content": [
        {
            "type": "text",
            "text": "# deb-preinst (man)\n\n## NAME\n\ndeb-preinst - package pre-installation maintainer script\n\n## DESCRIPTION\n\nA package can perform several pre-installation actions via maintainer scripts, by including\nan executable preinst file in its control archive (i.e. DEBIAN/preinst during package\ncreation).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (1 subsections)\n- **DESCRIPTION**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "deb-preinst",
        "section": "",
        "mode": "man",
        "summary": "deb-preinst - package pre-installation maintainer script",
        "synopsis": "",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "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/preinst",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 22,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "deb-preinst - package pre-installation maintainer script\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "",
                "subsections": [
                    {
                        "name": "DEBIAN/preinst",
                        "content": ""
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "A package can perform several pre-installation actions via maintainer scripts, by including\nan executable preinst file in its control archive (i.e. DEBIAN/preinst during package\ncreation).\n\nThe script can be called in the following ways:\n\nnew-preinst install\nBefore the package is installed.\n\nnew-preinst install old-version new-version\nBefore removed package is upgraded.\n\nThe new-version is passed only since dpkg 1.18.5.\n\nnew-preinst upgrade old-version new-version\nBefore the package is upgraded.\n\nThe new-version is passed only since dpkg 1.18.5.\n\nold-preinst abort-upgrade new-version\nIf postrm fails during upgrade or fails on failed upgrade.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "dpkg(1).\n\n\n\n1.21.1                                       2025-09-09                               deb-preinst(5)",
                "subsections": []
            }
        }
    }
}