Skip to content

Wrapper scripts for debootstrap and pbuilder. Build deb package in a chroot.

License

Notifications You must be signed in to change notification settings

iikrllx/chroot-deb-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chroot-deb-builder

Automatic building of a deb package in a chroot. Maintainers usually do not build packages on their host machines, but do it in chroots. The deb-builder.sh script is a wrapper around pbuilder, pdebuild and debootstrap (excellent tools that automate the package building process and chroot creation). deb-builder.sh combines these tools into one.

Cloning and installing

$ git clone https://github.com/iikrllx/chroot-deb-builder.git
$ cd chroot-deb-builder
$ ./install-uninstall.sh install

Testing

Bootstrap Debian Bullseye:

$ sudo deb-builder.sh --mirror bullseye

Bootstrap a chroot from ISO file:

$ sudo deb-builder.sh --iso <suite> /path/to/my/iso

Example of building a Debian package:

$ mkdir -p ~/sources/coreutils
$ cd ~/sources/coreutils
$ apt-get source coreutils
$ cd coreutils-9.1
$ sudo deb-builder.sh --build /var/cache/pbuilder/bullseye-chroot.tgz

or with sound:

$ sudo deb-builder.sh --build /var/cache/pbuilder/bullseye-chroot.tgz --sound

The packages will be in: /var/cache/pbuilder/result
The last actual build: /var/cache/pbuilder/result/last
The penultimate build: /var/cache/pbuilder/result/prelast

Go to chroot:

$ sudo deb-builder.sh --login /var/cache/pbuilder/bullseye-chroot.tgz

Removal

If you didn't like this project, remove its files as follows:

$ ./install-uninstall.sh uninstall

License

This project is licensed under the GPLv3 License - see the LICENSE file for details.

About

Wrapper scripts for debootstrap and pbuilder. Build deb package in a chroot.

Topics

Resources

License

Stars

Watchers

Forks

Languages