{
    "content": [
        {
            "type": "text",
            "text": "# debrebuild (man)\n\n## NAME\n\ndebrebuild - use a buildinfo file and snapshot.d.o to recreate binary packages\n\n## SYNOPSIS\n\ndebrebuild [options] <buildinfo>\n\n## DESCRIPTION\n\ndebrebuild <--help|-h>\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (3 subsections)\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "debrebuild",
        "section": "",
        "mode": "man",
        "summary": "debrebuild - use a buildinfo file and snapshot.d.o to recreate binary packages",
        "synopsis": "debrebuild [options] <buildinfo>",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Whether to fetch resources via tor (socks://127.0.0.1:9050) Assumes \"apt-trans‐ port-tor\" is installed both in host + chroot"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Whether to setup the build to use the Build-Path from the provided .buildinfo file."
            },
            {
                "flag": "",
                "long": "--buildresults",
                "arg": null,
                "description": "Directory for the build artifacts (default: ./) --builder=BUILDER Which building software should be used. Possible values are none, sbuild, mmdebstrap, dpkg and sbuild+unshare. The default is none. See section BUILDER for details. Note: debrebuild can parse buildinfo files with and without a GPG signature. However, the signature (if present) is discarded as debrebuild does not support verifying it. If the au‐ thenticity or integrity of the buildinfo files are important to you, checking these need to be done before invoking debrebuild, for example by using dscverify. EXAMPLES $ debrebuild --buildresults=./artifacts --builder=mmdebstrap hello2.10-2amd64.build‐ info BUILDERS debrebuild can use different backends to perform the actual package rebuild. The desired backend is chosen using the --builder option. The default is \"none\". none Dry-run mode. No build is performed. sbuild Use sbuild to build the package. This requires sbuild to be setup with schroot chroots of Debian stable distributions. mmdebstrap Use mmdebstrap to build the package. This requires no setup and no superuser privi‐ leges. dpkg Directly run apt-get and dpkg-buildpackage on the current system without chroot. This requires root privileges. sbuild+unshare Use sbuild with the unshare backend. This will create the chroot and perform the build without superuser privileges and without any setup. UNSHARE Before kernel 5.10.1 or before Debian 11 (Bullseye), unprivileged user namespaces were dis‐ abled in Debian for security reasons. Refer to Debian bug #898446 for details. To enable user namespaces, run: $ sudo sysctl -w kernel.unprivilegedusernsclone=1 The sbuild+unshare builder requires and the mmdebstrap builder benefits from having unprivi‐ leged user namespaces activated. On Ubuntu they are enabled by default. LIMITATIONS Currently, the code assumes that all packages were at some point part of Debian unstable main. This fails for packages from Debian ports, packages from experimental as well as for locally built packages or packages from third party repositories. Enabling support for Debian ports and experimental is conceptually possible and only needs somebody implementing it. debrebuild 2.22.1ubuntu1.2 March 2026 DEBREBUILD(1)"
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 3,
                "subsections": [
                    {
                        "name": "--[no-]use-tor-proxy",
                        "lines": 3
                    },
                    {
                        "name": "--[no-]respect-build-path",
                        "lines": 2
                    },
                    {
                        "name": "--buildresults",
                        "lines": 58,
                        "long": "--buildresults"
                    }
                ]
            }
        ],
        "sections": {
            "NAME": {
                "content": "debrebuild - use a buildinfo file and snapshot.d.o to recreate binary packages\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "debrebuild [options] <buildinfo>\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "debrebuild <--help|-h>\n\nGiven  a buildinfo file from a Debian package, generate instructions for attempting to repro‐\nduce the binary packages built from the associated source and build information.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "--help, -h\nShow this help and exit\n",
                "subsections": [
                    {
                        "name": "--[no-]use-tor-proxy",
                        "content": "Whether to  fetch  resources  via  tor  (socks://127.0.0.1:9050)  Assumes  \"apt-trans‐\nport-tor\" is installed both in host + chroot\n"
                    },
                    {
                        "name": "--[no-]respect-build-path",
                        "content": "Whether to setup the build to use the Build-Path from the provided .buildinfo file.\n"
                    },
                    {
                        "name": "--buildresults",
                        "content": "Directory for the build artifacts (default: ./)\n\n--builder=BUILDER\nWhich  building software should be used. Possible values are none, sbuild, mmdebstrap,\ndpkg and sbuild+unshare. The default is none. See section BUILDER for details.\n\nNote: debrebuild can parse buildinfo files with and without a GPG  signature.   However,  the\nsignature  (if present) is discarded as debrebuild does not support verifying it.  If the au‐\nthenticity or integrity of the buildinfo files are important to you, checking these  need  to\nbe done before invoking debrebuild, for example by using dscverify.\n\nEXAMPLES\n\n$ debrebuild --buildresults=./artifacts --builder=mmdebstrap hello2.10-2amd64.build‐\ninfo\n\nBUILDERS\n\ndebrebuild can use different backends to perform the actual  package  rebuild.   The  desired\nbackend is chosen using the --builder option. The default is \"none\".\n\nnone   Dry-run mode. No build is performed.\n\nsbuild Use sbuild to build the package. This requires sbuild to be setup with schroot chroots\nof Debian stable distributions.\n\nmmdebstrap\nUse mmdebstrap to build the package. This requires no setup and  no  superuser  privi‐\nleges.\n\ndpkg   Directly  run apt-get and dpkg-buildpackage on the current system without chroot. This\nrequires root privileges.\n\nsbuild+unshare\nUse sbuild with the unshare backend. This will create the chroot and perform the build\nwithout superuser privileges and without any setup.\n\nUNSHARE\n\nBefore  kernel  5.10.1 or before Debian 11 (Bullseye), unprivileged user namespaces were dis‐\nabled in Debian for security reasons. Refer to Debian bug #898446 for details. To enable user\nnamespaces, run:\n\n$ sudo sysctl -w kernel.unprivilegedusernsclone=1\n\nThe  sbuild+unshare builder requires and the mmdebstrap builder benefits from having unprivi‐\nleged user namespaces activated. On Ubuntu they are enabled by default.\n\nLIMITATIONS\n\nCurrently, the code assumes that all packages were at some  point  part  of  Debian  unstable\nmain.  This  fails  for packages from Debian ports, packages from experimental as well as for\nlocally built packages or packages from third party repositories. Enabling support for Debian\nports and experimental is conceptually possible and only needs somebody implementing it.\n\n\n\ndebrebuild 2.22.1ubuntu1.2                   March 2026                                DEBREBUILD(1)",
                        "long": "--buildresults"
                    }
                ]
            }
        }
    }
}