info > DEBREBUILD

📛 NAME

debrebuild — use a buildinfo file and snapshot.d.o to recreate binary packages

🚀 Quick Reference

Use CaseCommandDescription
Dry‑run (no build)debrebuild hello_2.10-2_amd64.buildinfoParse buildinfo and print reconstruction plan
Rebuild with mmdebstrapdebrebuild --builder=mmdebstrap hello_2.10-2_amd64.buildinfoUnprivileged rebuild, no setup required
Rebuild with sbuilddebrebuild --builder=sbuild hello_2.10-2_amd64.buildinfoBuild using sbuild + schroot (needs setup)
Rebuild with dpkg (root)debrebuild --builder=dpkg hello_2.10-2_amd64.buildinfoDirect build on host (requires root)
Rebuild with sbuild+unsharedebrebuild --builder=sbuild+unshare hello_2.10-2_amd64.buildinfoUnprivileged build with unshare backend
Specify output directorydebrebuild --buildresults=./artifacts --builder=mmdebstrap hello_2.10-2_amd64.buildinfoPut build artifacts in ./artifacts

📜 SYNOPSIS

debrebuild [options] <buildinfo>

📖 DESCRIPTION

Given a buildinfo file from a Debian package, generate instructions for attempting to reproduce the binary packages built from the associated source and build information.

debrebuild <--help|-h>

⚙️ OPTIONS

📝 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 authenticity 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 hello_2.10-2_amd64.buildinfo

🏗️ 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".

🔓 UNSHARE

Before kernel 5.10.1 or before Debian 11 (Bullseye), unprivileged user namespaces were disabled in Debian for security reasons. Refer to Debian bug #898446 for details. To enable user namespaces, run:

$ sudo sysctl -w kernel.unprivileged_userns_clone=1

The sbuild+unshare builder requires and the mmdebstrap builder benefits from having unprivileged 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)

DEBREBUILD
📛 NAME 🚀 Quick Reference 📜 SYNOPSIS 📖 DESCRIPTION ⚙️ OPTIONS 📝 EXAMPLES 🏗️ BUILDERS 🔓 UNSHARE ⚠️ LIMITATIONS

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-26 01:28 @216.73.217.127
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!