{
    "mode": "man",
    "parameter": "DPKG-GENBUILDDEPS",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/DPKG-GENBUILDDEPS/json",
    "generated": "2026-11-24T03:33:38Z",
    "synopsis": "dpkg-genbuilddeps [arg ...]",
    "sections": {
        "NAME": {
            "content": "dpkg-genbuilddeps - generate a list of packages used to build this package\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "dpkg-genbuilddeps [arg ...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This program is a wrapper around dpkg-depcheck(1).  It should be run from the top of a Debian\nbuild  tree.  It calls dpkg-buildpackage with any arguments given on the command line, and by\ntracing the execution of this, it determines which non-essential packages  were  used  during\nthe  package  building.   This  can  be  useful in determining what the Build-Depends control\nfields should contain.  It does not determine which packages were used for the arch  indepen‐\ndent parts of the build and which for the arch dependent parts, not does it attempt to deter‐\nmine which versions of packages are required.  It should be able to run under fakeroot rather\nthan being run as root, as fakeroot dpkg-genbuilddeps, or dpkg-genbuilddeps -rfakeroot.\n\nThis  program requires the build-essential package to be installed.  If it is not, please use\ndpkg-depcheck directly, with a command such as\ndpkg-depcheck --all dpkg-buildpackage -us -uc -b -rfakeroot ...\nAll this program itself does is essentially to run the command:\ndpkg-depcheck -b dpkg-buildpackage -us -uc -b -rfakeroot [arg ...]\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "dpkg-depcheck(1), fakeroot(1)\n\nThe Debian Policy Manual, sections on Build-Depends etc.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "The original dpkg-genbuilddeps was written by Ben Collins <bcollins@debian.org>.  The current\nversion is a simple wrapper around dpkg-depcheck  written  by  Bill  Allombert  <ballombe@de‐\nbian.org>.  This manual page was written by Julian Gilbey <jdg@debian.org>.\n\nDEBIAN                                    Debian Utilities                      DPKG-GENBUILDDEPS(1)",
            "subsections": []
        }
    },
    "summary": "dpkg-genbuilddeps - generate a list of packages used to build this package",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "dpkg-depcheck",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dpkg-depcheck/1/json"
        },
        {
            "name": "fakeroot",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/fakeroot/1/json"
        }
    ]
}