{
    "mode": "man",
    "parameter": "MK-BUILD-DEPS",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/MK-BUILD-DEPS/json",
    "generated": "2026-11-22T15:05:40Z",
    "synopsis": "mk-build-deps --help|--version\nmk-build-deps [options] control file | package name ...",
    "sections": {
        "NAME": {
            "content": "mk-build-deps - build a package satisfying a package's build-dependencies\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "mk-build-deps --help|--version\n\nmk-build-deps [options] control file | package name ...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Given a package name and/or control file, mk-build-deps will use equivs to generate a binary\npackage which may be installed to satisfy all the build dependencies of the given package.\n\nIf --build-dep and/or --build-indep are given, then the resulting binary package(s) will\ndepend solely on the Build-Depends/Build-Depends-Indep dependencies, respectively.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-i --install",
                    "content": "Install the generated packages and its build-dependencies.\n",
                    "flag": "-i",
                    "long": "--install"
                },
                {
                    "name": "-t --tool",
                    "content": "When  installing  the  generated  package  use  the specified tool.  (default: apt-get -o\nDebug::pkgProblemResolver=yes --no-install-recommends)\n",
                    "flag": "-t",
                    "long": "--tool"
                },
                {
                    "name": "-r --remove",
                    "content": "Remove the package file after installing  it.  Ignored  if  used  without  the  --install\nswitch.\n",
                    "flag": "-r",
                    "long": "--remove"
                },
                {
                    "name": "-a  --arch",
                    "content": "Set  the architecture of the produced binary package to foo. If this option is not given,\nfall back to the value given by --host-arch. If neither this option nor  --host-arch  are\ngiven  but  the Build-Depends contain architecture restrictions, use the value printed by\n`dpkg-architecture -qDEBHOSTARCH`.  Otherwise, use all.\n\nThe package architecture must be equal to the host architecture  except  if  the  package\narchitecture is all.\n\nThe package architecture cannot be all if the build and host architecture differ.\n\n--host-arch foo\nSet  the  host  architecture  the binary package is built for. This defaults to the value\nprinted by `dpkg-architecture -qDEBHOSTARCH`.  Use  this  option  to  create  a  binary\npackage that is able to satisfy crossbuild dependencies.\n\nIf  this option is used together with --arch, then they must be equal except if the value\nof --arch is all.\n\nIf --arch is not given, then this option also sets the package architecture.\n\n--build-arch foo\nSet the build architecture the binary package is built for. This defaults  to  the  value\nprinted  by  `dpkg-architecture  -qDEBBUILDARCH`.  Use  this  option to create a binary\npackage that is able to satisfy crossbuild dependencies.\n",
                    "flag": "-a",
                    "long": "--arch"
                },
                {
                    "name": "-B --build-dep",
                    "content": "Generate a package which only depends on the source package's Build-Depends dependencies.\n",
                    "flag": "-B",
                    "long": "--build-dep"
                },
                {
                    "name": "-A --build-indep",
                    "content": "Generate a package  which  only  depends  on  the  source  package's  Build-Depends-Indep\ndependencies.\n",
                    "flag": "-A",
                    "long": "--build-indep"
                },
                {
                    "name": "-P --build-profiles",
                    "content": "Generate  a  package  which only depends on build dependencies with the build profile(s),\ngiven as a comma-separated list.  The default behavior is to  use  no  specific  profile.\nSetting this option will override the DEBBUILDPROFILES environment variable.\n",
                    "flag": "-P",
                    "long": "--build-profiles"
                },
                {
                    "name": "-h --help",
                    "content": "Show a summary of options.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-v --version",
                    "content": "Show version and copyright information.\n",
                    "flag": "-v",
                    "long": "--version"
                },
                {
                    "name": "-s --root-cmd",
                    "content": "Use  the  specified  tool  to  gain  root  privileges before installing.  Ignored if used\nwithout the --install switch.\n",
                    "flag": "-s",
                    "long": "--root-cmd"
                }
            ]
        },
        "ENVIRONMENT": {
            "content": "",
            "subsections": [
                {
                    "name": "External environment",
                    "content": "DEBBUILDPROFILES\nIf set, it will be used as the active build profile(s) for the build dependencies  to  be\ninstalled.  It is a space separated list of profile names.  Overridden by the -P option.\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "mk-build-deps is copyright by Vincent Fourmond and was modified for the devscripts package by\nAdam D. Barratt <adam@adam-barratt.org.uk>.\n\nThis program comes with ABSOLUTELY NO WARRANTY.  You are free to redistribute this code under\nthe terms of the GNU General Public License, version 2 or later.\n\nDebian Utilities                             2026-02-25                             MK-BUILD-DEPS(1)",
            "subsections": []
        }
    },
    "summary": "mk-build-deps - build a package satisfying a package's build-dependencies",
    "flags": [
        {
            "flag": "-i",
            "long": "--install",
            "arg": null,
            "description": "Install the generated packages and its build-dependencies."
        },
        {
            "flag": "-t",
            "long": "--tool",
            "arg": null,
            "description": "When installing the generated package use the specified tool. (default: apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends)"
        },
        {
            "flag": "-r",
            "long": "--remove",
            "arg": null,
            "description": "Remove the package file after installing it. Ignored if used without the --install switch."
        },
        {
            "flag": "-a",
            "long": "--arch",
            "arg": null,
            "description": "Set the architecture of the produced binary package to foo. If this option is not given, fall back to the value given by --host-arch. If neither this option nor --host-arch are given but the Build-Depends contain architecture restrictions, use the value printed by `dpkg-architecture -qDEBHOSTARCH`. Otherwise, use all. The package architecture must be equal to the host architecture except if the package architecture is all. The package architecture cannot be all if the build and host architecture differ. --host-arch foo Set the host architecture the binary package is built for. This defaults to the value printed by `dpkg-architecture -qDEBHOSTARCH`. Use this option to create a binary package that is able to satisfy crossbuild dependencies. If this option is used together with --arch, then they must be equal except if the value of --arch is all. If --arch is not given, then this option also sets the package architecture. --build-arch foo Set the build architecture the binary package is built for. This defaults to the value printed by `dpkg-architecture -qDEBBUILDARCH`. Use this option to create a binary package that is able to satisfy crossbuild dependencies."
        },
        {
            "flag": "-B",
            "long": "--build-dep",
            "arg": null,
            "description": "Generate a package which only depends on the source package's Build-Depends dependencies."
        },
        {
            "flag": "-A",
            "long": "--build-indep",
            "arg": null,
            "description": "Generate a package which only depends on the source package's Build-Depends-Indep dependencies."
        },
        {
            "flag": "-P",
            "long": "--build-profiles",
            "arg": null,
            "description": "Generate a package which only depends on build dependencies with the build profile(s), given as a comma-separated list. The default behavior is to use no specific profile. Setting this option will override the DEBBUILDPROFILES environment variable."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Show a summary of options."
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "Show version and copyright information."
        },
        {
            "flag": "-s",
            "long": "--root-cmd",
            "arg": null,
            "description": "Use the specified tool to gain root privileges before installing. Ignored if used without the --install switch."
        }
    ],
    "examples": [],
    "see_also": []
}