Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Build dpkg from .dsc, debian.tar.xz and orig.tar.xz

For some reason I haven't written this down before. Let's say you have .dsc, orig.tar.gz, and debian.tar.xz files, and you want to build the package locally.

$ ls -1
librewolf_154.0.1-1.debian.tar.xz
librewolf_154.0.1-1.dsc
librewolf_154.0.1.orig.tar.xz

Run these commands. dpkg-source will extract the original tarball and apply the debianized patches.

dpkg-source -x librewolf_154.0.1-1.dsc
cd librewolf_154.0.1
debuild -us -uc

Comments