This shows you the differences between two versions of the page.
| — |
proc:debian_packaging [2026/05/16 19:49] (current) phil created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Debian Packaging ====== | ||
| + | |||
| + | ===== Packaging environment with sbuild ===== | ||
| + | |||
| + | Install sbuild: | ||
| + | |||
| + | <code bash> | ||
| + | sudo apt install apt-cacher-ng sbuild schroot debootstrap | ||
| + | sudo adduser sbuild $(whoami) # you might need to re-login after this | ||
| + | </ | ||
| + | |||
| + | Create a trixie sbuild chroot: | ||
| + | |||
| + | <code bash> | ||
| + | sudo sbuild-createchroot --include=eatmydata, | ||
| + | / | ||
| + | http:// | ||
| + | </ | ||
| + | |||
| + | Same procedure applies for unstable by just replacing '' | ||
| + | |||
| + | Then on a regular basis (or in crontab) you might need to update the sbuild chroot environment: | ||
| + | |||
| + | <code bash> | ||
| + | sudo sbuild-update --update --dist-upgrade --clean --autoremove --autoclean trixie | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Building packages ==== | ||
| + | |||
| + | |||
| + | Build a **source package**: | ||
| + | |||
| + | <code bash> | ||
| + | dpkg-buildpackage --build=source --no-check-builddeps | ||
| + | </ | ||
| + | |||
| + | Build a **binary package**: | ||
| + | |||
| + | <code bash> | ||
| + | sbuild -d trixie | ||
| + | </ | ||