User Tools

Site Tools


proc:debian_packaging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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
 +</code>
 +
 +Create a trixie sbuild chroot:
 +
 +<code bash>
 +sudo sbuild-createchroot --include=eatmydata,ccache trixie \
 +    /var/lib/sbuild/trixie-amd64-sbuild \
 +    http://127.0.0.1:3142/debian
 +</code>
 +
 +Same procedure applies for unstable by just replacing ''trixie'' by ''unstable''.
 +
 +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
 +</code>
 +
 +
 +==== Building packages ====
 +
 +
 +Build a **source package**:
 +
 +<code bash>
 +dpkg-buildpackage --build=source --no-check-builddeps
 +</code>
 +
 +Build a **binary package**:
 +
 +<code bash>
 +sbuild -d trixie
 +</code>
proc/debian_packaging.txt ยท Last modified: 2026/05/16 19:49 by phil