{
    "content": [
        {
            "type": "text",
            "text": "# BUILD-RDEPS (man)\n\n## NAME\n\nbuild-rdeps - find packages that depend on a specific package to build (reverse build depends)\n\n## SYNOPSIS\n\nbuild-rdeps package\n\n## DESCRIPTION\n\nbuild-rdeps searches for all packages that build-depend on the specified package.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (15 subsections)\n- **REQUIREMENTS**\n- **LICENSE**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "BUILD-RDEPS",
        "section": "",
        "mode": "man",
        "summary": "build-rdeps - find packages that depend on a specific package to build (reverse build depends)",
        "synopsis": "build-rdeps package",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-u",
                "long": "--update",
                "arg": null,
                "description": "Run apt-get update before searching for build-depends."
            },
            {
                "flag": "-s",
                "long": "--sudo",
                "arg": null,
                "description": "Use sudo when running apt-get update. Has no effect if -u is omitted."
            },
            {
                "flag": "",
                "long": "--distribution",
                "arg": null,
                "description": "Select another distribution, which is searched for build-depends."
            },
            {
                "flag": "",
                "long": "--only-main",
                "arg": null,
                "description": "Ignore contrib, non-free and non-free-firmware."
            },
            {
                "flag": "",
                "long": "--only-devel",
                "arg": null,
                "description": "Consider only development distributions (e.g. unstable, sid)."
            },
            {
                "flag": "",
                "long": "--exclude-component",
                "arg": null,
                "description": "Ignore the given component (e.g. main, contrib, non-free, non-free-firmware)."
            },
            {
                "flag": "",
                "long": "--origin",
                "arg": null,
                "description": "Restrict the search to only the specified origin (such as \"Debian\")."
            },
            {
                "flag": "-m",
                "long": "--print-maintainer",
                "arg": null,
                "description": "Print the value of the maintainer field for each package."
            },
            {
                "flag": "",
                "long": "--host-arch",
                "arg": null,
                "description": "Explicitly set the host architecture. The default is the value of `dpkg-architecture -qDEBHOSTARCH`. This option only works if dose-extra >= 4.0 is installed."
            },
            {
                "flag": "",
                "long": "--build-arch",
                "arg": null,
                "description": "Explicitly set the build architecture. The default is the value of `dpkg-architecture -qDEBBUILDARCH`. This option only works if dose-extra >= 4.0 is installed. --no-arch-all, --no-arch-any Ignore Build-Depends-Indep or Build-Depends-Arch while looking for reverse dependencies."
            },
            {
                "flag": "",
                "long": "--old",
                "arg": null,
                "description": "Force the old simple behaviour without dose-ceve support even if dose-extra >= 4.0 is installed. (This tends to be faster.) Notice, that the old behaviour only finds direct dependencies, ignores virtual dependencies, does not find transitive dependencies and does not take version relationships, architecture restrictions, build profiles or multiarch relationships into account."
            },
            {
                "flag": "-q",
                "long": "--quiet",
                "arg": null,
                "description": "Don't print meta information (header, counter). Making it easier to use in scripts."
            },
            {
                "flag": "-d",
                "long": "--debug",
                "arg": null,
                "description": "Run the debug mode"
            },
            {
                "flag": "",
                "long": "--help",
                "arg": null,
                "description": "Show the usage information."
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Show the version information."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-u --update",
                        "lines": 2,
                        "flag": "-u",
                        "long": "--update"
                    },
                    {
                        "name": "-s --sudo",
                        "lines": 2,
                        "flag": "-s",
                        "long": "--sudo"
                    },
                    {
                        "name": "--distribution",
                        "lines": 2,
                        "long": "--distribution"
                    },
                    {
                        "name": "--only-main",
                        "lines": 2,
                        "long": "--only-main"
                    },
                    {
                        "name": "--only-devel",
                        "lines": 2,
                        "long": "--only-devel"
                    },
                    {
                        "name": "--exclude-component",
                        "lines": 2,
                        "long": "--exclude-component"
                    },
                    {
                        "name": "--origin",
                        "lines": 2,
                        "long": "--origin"
                    },
                    {
                        "name": "-m --print-maintainer",
                        "lines": 2,
                        "flag": "-m",
                        "long": "--print-maintainer"
                    },
                    {
                        "name": "--host-arch",
                        "lines": 3,
                        "long": "--host-arch"
                    },
                    {
                        "name": "--build-arch",
                        "lines": 6,
                        "long": "--build-arch"
                    },
                    {
                        "name": "--old",
                        "lines": 8,
                        "long": "--old"
                    },
                    {
                        "name": "-q --quiet",
                        "lines": 2,
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-d --debug",
                        "lines": 2,
                        "flag": "-d",
                        "long": "--debug"
                    },
                    {
                        "name": "--help",
                        "lines": 2,
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "REQUIREMENTS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "build-rdeps - find packages that depend on a specific package to build (reverse build\ndepends)\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "build-rdeps package\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "build-rdeps searches for all packages that build-depend on the specified package.\n\nThe default behaviour is to just `grep` for the given dependency in the Build-Depends field\nof apt's Sources files.\n\nIf the package dose-extra >= 4.0 is installed, then a more complete reverse build dependency\ncomputation is carried out. In particular, with that package installed, build-rdeps will find\ntransitive reverse dependencies, respect architecture and build profile restrictions, take\nProvides relationships, Conflicts, Pre-Depends, Build-Depends-Arch and versioned dependencies\ninto account and correctly resolve multiarch relationships for crossbuild reverse dependency\nresolution.  (This tends to be a slow process due to the complexity of the package\ninterdependencies.)\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-u --update",
                        "content": "Run apt-get update before searching for build-depends.\n",
                        "flag": "-u",
                        "long": "--update"
                    },
                    {
                        "name": "-s --sudo",
                        "content": "Use sudo when running apt-get update. Has no effect if -u is omitted.\n",
                        "flag": "-s",
                        "long": "--sudo"
                    },
                    {
                        "name": "--distribution",
                        "content": "Select another distribution, which is searched for build-depends.\n",
                        "long": "--distribution"
                    },
                    {
                        "name": "--only-main",
                        "content": "Ignore contrib, non-free and non-free-firmware.\n",
                        "long": "--only-main"
                    },
                    {
                        "name": "--only-devel",
                        "content": "Consider only development distributions (e.g. unstable, sid).\n",
                        "long": "--only-devel"
                    },
                    {
                        "name": "--exclude-component",
                        "content": "Ignore the given component (e.g. main, contrib, non-free, non-free-firmware).\n",
                        "long": "--exclude-component"
                    },
                    {
                        "name": "--origin",
                        "content": "Restrict the search to only the specified origin (such as \"Debian\").\n",
                        "long": "--origin"
                    },
                    {
                        "name": "-m --print-maintainer",
                        "content": "Print the value of the maintainer field for each package.\n",
                        "flag": "-m",
                        "long": "--print-maintainer"
                    },
                    {
                        "name": "--host-arch",
                        "content": "Explicitly  set  the  host  architecture.  The default is the value of `dpkg-architecture\n-qDEBHOSTARCH`. This option only works if dose-extra >= 4.0 is installed.\n",
                        "long": "--host-arch"
                    },
                    {
                        "name": "--build-arch",
                        "content": "Explicitly set the build architecture. The default is  the  value  of  `dpkg-architecture\n-qDEBBUILDARCH`. This option only works if dose-extra >= 4.0 is installed.\n\n--no-arch-all, --no-arch-any\nIgnore Build-Depends-Indep or Build-Depends-Arch while looking for reverse dependencies.\n",
                        "long": "--build-arch"
                    },
                    {
                        "name": "--old",
                        "content": "Force  the  old  simple  behaviour without dose-ceve support even if dose-extra >= 4.0 is\ninstalled.  (This tends to be faster.)\n\nNotice,  that  the  old  behaviour  only  finds  direct  dependencies,  ignores   virtual\ndependencies,   does   not  find  transitive  dependencies  and  does  not  take  version\nrelationships, architecture restrictions, build profiles or multiarch relationships  into\naccount.\n",
                        "long": "--old"
                    },
                    {
                        "name": "-q --quiet",
                        "content": "Don't print meta information (header, counter). Making it easier to use in scripts.\n",
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-d --debug",
                        "content": "Run the debug mode\n",
                        "flag": "-d",
                        "long": "--debug"
                    },
                    {
                        "name": "--help",
                        "content": "Show the usage information.\n",
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "content": "Show the version information.\n",
                        "long": "--version"
                    }
                ]
            },
            "REQUIREMENTS": {
                "content": "The  tool requires apt Sources files to be around for the checked components.  In the default\ncase this means that in /var/lib/apt/lists files need to be around for  main,  contrib,  non-\nfree and non-free-firmware.\n\nIn practice this means one needs to add one deb-src line for each component, e.g.\n\ndeb-src http://<mirror>/debian <dist> main contrib non-free non-free-firmware\n\nand run apt-get update afterwards or use the update option of this tool.\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "This  code  is  copyright by Patrick Schoenfeld <schoenfeld@debian.org>, all rights reserved.\nThis program comes with ABSOLUTELEY NO WARRANTY.  You are  free  to  redistribute  this  code\nunder the terms of the GNU General Public License, version 2 or later.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Patrick Schoenfeld <schoenfeld@debian.org>\n\nDebian Utilities                             2026-02-25                               BUILD-RDEPS(1)",
                "subsections": []
            }
        }
    }
}