{
    "mode": "man",
    "parameter": "what-patch",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/what-patch/1/json",
    "generated": "2026-08-26T02:30:29Z",
    "synopsis": "what-patch [options]",
    "sections": {
        "NAME": {
            "content": "what-patch - detect which patch system a Debian package uses\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "what-patch [options]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "what-patch  examines the debian/rules file to determine which patch system the Debian package\nis using.\n\nwhat-patch should be run from the root directory of the Debian source package.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Listed below are the command line options for what-patch:\n",
            "subsections": [
                {
                    "name": "-h --help",
                    "content": "Display a help message and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-v",
                    "content": "the  debian/  directory  and  report  any additional details about the patch system if\navailable.\n\n",
                    "flag": "-v"
                }
            ]
        },
        "AUTHORS": {
            "content": "what-patch   was   written   by   Kees   Cook   <kees@ubuntu.com>,   Siegfried-A.    Gevatter\n<rainct@ubuntu.com>,  and  Daniel Hahler <ubuntu@thequod.de>, among others.  This manual page\nwas written by Jonathan Patrick Davies <jpds@ubuntu.com>.\n\nBoth are released under the GNU General Public License, version 3 or later.\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "The Ubuntu MOTU team  has  some  documentation  about  patch  systems  at  the  Ubuntu  wiki:\nhttps://wiki.ubuntu.com/PackagingGuide/PatchSystems\n\n\ncdbs-edit-patch(1), dbs-edit-patch(1), dpatch-edit-patch(1)\n\nDEBIAN                                    Debian Utilities                             WHAT-PATCH(1)",
            "subsections": []
        }
    },
    "summary": "what-patch - detect which patch system a Debian package uses",
    "flags": [
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Display a help message and exit."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": "the debian/ directory and report any additional details about the patch system if available."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "cdbs-edit-patch",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/cdbs-edit-patch/1/json"
        },
        {
            "name": "dbs-edit-patch",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dbs-edit-patch/1/json"
        },
        {
            "name": "dpatch-edit-patch",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dpatch-edit-patch/1/json"
        },
        {
            "name": "WHAT-PATCH",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/WHAT-PATCH/1/json"
        }
    ]
}