PBUILDER-DIST(1)
β¨ PBUILDER-DIST β¨
okay bestie, welcome to the pbuilder-dist(1) page, from the General Commands Manual π this is the whole thing, glow-up edition, but every single fact is staying put. no cap.
πΈ NAME πΈ
pbuilder-dist, cowbuilder-dist β the multi-distribution pbuilder/cowbuilder wrapper. it's giving "one script, every distro" energy π¦
π SYNOPSIS π
pbuilder-dist distribution [architecture] operation [options] [...]
cowbuilder-dist distribution [architecture] operation [options] [...]
π DESCRIPTION π
So like. pbuilder-dist is a wrapper that makes it actually easy to use pbuilder with a whole bunch of different versions of Ubuntu and/or Debian. one script, so many distros, we love to see it π
It's super common to symlink this script so it has many names in the form of pbuilder-distribution or pbuilder-distribution-architecture β for example pbuilder-feisty, pbuilder-sid, pbuilder-gutsy-i386, etc. so many little aliases, iconic honestly.
The same applies to cowbuilder-dist, which uses cowbuilder. The main difference between the two? pbuilder compresses the created chroot as a tarball, so it uses less disc space, BUT it needs to uncompress (and possibly compress) its contents again on each run π. cowbuilder doesn't do this. trade-offs, bestie, trade-offs.
π USAGE π
There are many arguments listed in the synopsis; each of them, if used, has to be used exactly in the same order as it appears there. order matters, periodt.
If you renamed the script to pbuilder-distribution, do not use the distribution parameter. Same with i386 / amd64 if the name also contains -architecture. the name already said it, don't say it twice π
distributionβ Replace this with the codename of the version of Ubuntu or Debian you want to use.architectureβ This optional parameter will attempt to construct a chroot in a foreign architecture. For some architecture pairs (e.g.i386on anamd64install), the chroot will be created natively. For others (e.g.arm64on anamd64install),qemu-user-staticwill be used. Note that some combinations (e.g.amd64on ani386install) require special separate kernel handling, and may break in unexpected ways π so like, be aware.operationβ Replace this with the action you want pbuilder to do:create,update,build,clean,loginorexecute. If you don't specify any action, but the next argument is a.dscfile, it will assume that it should build. Check its manpage for more details π[...]β Replace this with other parameters, if needed. For example, ifbuildis the option, you will need to also specify a.dscfile. As a special feature, if you specify a.dscfile you can skip thebuildoption and this script will automatically assume that building is the action you want to do. it just knows β¨
β¨ OPTIONS β¨
--main-only(deprecated:mainonly) β If you specify this option, only packages from themain(in Debian) ormainandrestricted(in Ubuntu) components will be used. By default, all official components are enabled. This only has effect when creating a new environment. > ngl it's deprecated, so maybe don't, but it does still exist π--debug-echoβ The generated pbuilder/cowbuilder command will be printed to the standard output instead of being executed. This is useful for debugging. peek at the command before it does anything, very main character detective energy π--buildresult DIRECTORY(pbuilder-dist only) β If this option is specified, the resultant files of the pbuilder build are placed in DIRECTORY.--release-onlyβ Only use the release pocket. Default for development releases.--security-onlyβ Only use the release and security pockets. Suitable environment for preparing security updates.--updates-onlyβ Only use the release, security, and updates pocket. Not the proposed-updates pocket.--backportsβ Also use the backports archive.
π¦ EXAMPLES π¦
pbuilder-dist gutsy createβ Creates a pbuilder environment for Ubuntu Gutsy, with all components enabled.pbuilder-sid --main-only createβ Creates a pbuilder environment for Debian Sid, with only themaincomponent.pbuilder-feisty build ./sample_1.0-0ubuntu1.dscβ Builds the specified package on an already existing Ubuntu Feisty environment.pbuilder-dist feisty withlog build ./sample_1.0-0ubuntu1.dscβ Same as above, but stores pbuilder's output on a file.pbuilder-etch i386 updateβ Updates an existingi386-architecture Debian Etch environment on anamd64system.cowbuilder-experimental createβ Creates a cowbuilder environment for Debian Experimental.
π FILES AND ENVIRONMENT VARIABLES π
By default, pbuilder-dist will store all the files it generates in ~/pbuilder/. This can be changed by setting the PBUILDFOLDER environment variable. If the directory doesn't exist, it will be created on the run. it just makes itself at home π
A file with the log of the last operation, called last_operation.log, will be saved in the results subdirectory of each build environment.
The default authentication method is sudo. You can change this by setting the PBUILDAUTH variable.
By default, pbuilder-dist use the master Debian and Ubuntu mirrors. The pbuilder MIRRORSITE and OTHERMIRROR variables are supported, as are the standard ubuntu-dev-tools variables: UBUNTUTOOLS_DEBIAN_MIRROR, PBUILDER_DIST_DEBIAN_MIRROR, UBUNTUTOOLS_DEBSEC_MIRROR, PBUILDER_DIST_DEBSEC_MIRROR, UBUNTUTOOLS_UBUNTU_MIRROR, PBUILDER_DIST_UBUNTU, UBUNTUTOOLS_UBUNTU_PORTS_MIRROR, and PBUILDER_DIST_UBUNTU_PORTS_MIRROR. See ubuntu-dev-tools(5) for details.
You may also want to know that pbuilder-dist exports DIST and ARCH environment variables to the invoked process, containing the name of the distribution and the architecture targeted by the current build. You can make use of them, for example, in pbuilderrc. handy fr fr π«Ά
π BUGS π
If you experience any problem with this script contact me on rainct@ubuntu.com or file a bug at https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools.
Please ensure first that the problem is really this script and not an issue with pbuilder or cowbuilder themselves. π like, check the right suspect before you @ anyone.
π SEE ALSO π
pbuilder(1), pbuilderrc(5), cowbuilder(1), ubuntu-dev-tools(5).
π AUTHORS π
pbuilder-dist and this manual page were written by Siegfried-A. Gevatter <rainct@ubuntu.com>, with contributions from Iain Lane <iain@orangesquash.org.uk>, Emmet Hikory <persia@ubuntu.com> and others.
pbuilder-dist is released under the GNU General Public License, version 2 or later.
and that's the whole thing bestie, from the ubuntu-dev-tools girlies, dated January 10, 2008 π slay, go build something πβ¨
π¦ where this page comes from
- debian trixie: ubuntu-dev-tools 0.206 Β· GPL-2.0-only
- ubuntu questing: ubuntu-dev-tools 0.206
- ubuntu resolute: ubuntu-dev-tools 0.210 Β· GPL-2.0-only
- ubuntu stonking: ubuntu-dev-tools 0.215 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms