{
    "mode": "man",
    "parameter": "deb-postrm",
    "section": "5",
    "url": "https://www.chedong.com/phpMan.php/man/deb-postrm/5/json",
    "generated": "2026-06-17T13:10:56Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "deb-postrm - package post-removal maintainer script\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "DEBIAN/postrm",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "A package can perform several post-removal actions via maintainer scripts, by including an\nexecutable postrm file in its control archive (i.e. DEBIAN/postrm during package creation).\n\nThe script can be called in the following ways:\n\npostrm remove\nAfter the package was removed.\n\npostrm purge\nAfter the package was purged.\n\nold-postrm upgrade new-version\nAfter the package was upgraded.\n\nnew-postrm failed-upgrade old-version new-version\nIf the above upgrade call fails.\n\nThe new-version is passed only since dpkg 1.18.5.\n\npostrm disappear overwriter-package overwriter-version\nAfter all of the packages files have been replaced.\n\nnew-postrm abort-install\nIf preinst fails during install.\n\nnew-postrm abort-install old-version new-version\nIf preinst fails during upgrade of removed package.\n\nThe new-version is passed only since dpkg 1.18.5.\n\nnew-postrm abort-upgrade old-version new-version\nIf preinst fails during upgrade.\n\nThe new-version is passed only since dpkg 1.18.5.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "dpkg(1).\n\n\n\n1.21.1                                       2025-09-09                                deb-postrm(5)",
            "subsections": []
        }
    },
    "summary": "deb-postrm - package post-removal maintainer script",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "dpkg",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dpkg/1/json"
        }
    ]
}