{
    "mode": "man",
    "parameter": "deb-preinst",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/deb-preinst/5/json",
    "generated": "2026-06-10T16:23:30Z",
    "synopsis": "",
    "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": []
        }
    },
    "summary": "deb-preinst - package pre-installation maintainer script",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "dpkg",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dpkg/1/json"
        }
    ]
}