pbuilder
These are the steps I use to set up my pbuilder environment. Edit /etc/pbuilderrc :
MIRRORSITE="http://ftp.at.debian.org/debian" OTHERMIRROR="deb file:/var/cache/pbuilder/result/ ./" BINDMOUNTS="/var/cache/pbuilder/result/"
Create the directory that will contain the built packages:
sudo mkdir /var/cache/pbuilder/result
Create the pbduiler chroot:
sudo pbuilder --create --distribution sid
Build a package:
sudo pbuilder --build foo.dsc
Update the Packages.gz:
dpkg-scanpackages . /dev/null | gzip -9 > Packages.gz echo "Running pbuilder update..." su -c "pbuilder --update --basetgz /var/cache/pbuilder/base.tgz"