Pbuilder
From Wikitech
(Difference between revisions)
(→Instructions: modifying) |
(category) |
||
| Line 25: | Line 25: | ||
== External documentation == | == External documentation == | ||
* [http://pbuilder.alioth.debian.org/pbuilder-doc.pdf pbuilder documentation] | * [http://pbuilder.alioth.debian.org/pbuilder-doc.pdf pbuilder documentation] | ||
| + | |||
| + | [[Category:Ubuntu]] | ||
Revision as of 18:58, 24 June 2007
pbuilder is a tool to automatically build packages in a clean chroot of an arbitrary Debian/Ubuntu distribution.
Contents |
Instructions
Same architecture
The first time, create a clean install image using e.g.:
# pbuilder create --distribution feisty
Then, when you want to build a package using this distribution image, use:
# pbuilder build package.dsc
i386 under amd64
The 64 bit AMD64 kernel can run i386 binaries, so i386 chroots are possible. Using this, i386 packages can be built on an amd64 machine.
Create a new distribution image using another filename:
# pbuilder create --distribution feisty --debootstrapopts --arch --debootstrapopts i386 --basetgz /var/cache/pbuilder/base-i386.tgz
Then to build a 32 bit package:
# linux32 pbuilder build --basetgz /var/cache/pbuilder/base-i386.tgz package.dsc
Modifying the base image
To change something in the base image, for example to add an APT repository, use:
# pbuilder login --save-after-login