{
    "content": [
        {
            "type": "text",
            "text": "# deb-postrm (man)\n\n## NAME\n\ndeb-postrm - package post-removal maintainer script\n\n## DESCRIPTION\n\nA 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\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-postrm",
        "section": "",
        "mode": "man",
        "summary": "deb-postrm - package post-removal 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/postrm",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 35,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}