This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
soft:debian_packaging [2026/05/16 19:50] phil removed |
— (current) | ||
|---|---|---|---|
| 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 | ||
| - | </ | ||