User Tools

Site Tools


soft:debian_packaging

Differences

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

Link to this comparison view

Next revision
Previous revision
soft:debian_packaging [2026/05/16 09:29]
phil created
— (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 
-</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> 
soft/debian_packaging.1778923744.txt.gz ยท Last modified: 2026/05/16 09:29 by phil