debian-dpkg-zstd
zstd decompression support for Debian
This is a patched dpkg package for Debian
- Adds support for zstd decompression of Ubuntu deb packages.
- Why? If you would like to be able to install deb packages from a Ubuntu repository in Debian.
Installation
- Download the deb packages and install:
git clone https://github.com/tmiland/dpkg-zstd-patches.gitsudo dpkg -i ./deb-packages/dpkg_1.20.12_amd64.debsudo dpkg -i ./deb-packages/dpkg-repack_1.47_all.debdpkg-repack is downloaded from the bullseye repo with:
apt download dpkg-repack=1.47Not needed if you are running bullseye
On bookworm it’s Because of the following error:
The following packages have unmet dependencies:
dpkg-repack : Depends: dpkg (>= 1.21.0)Add to /etc/apt/preferences to pin the dpkg packages:
Keeps them from being updated
sudo nano /etc/apt/preferencesPackage: dpkg dpkg-repack
Pin: release *
Pin-Priority: -100Testing
- Tested on Debian bookworm on Oct 29 2022
Build dpkg from source
git clone https://git.dpkg.org/git/dpkg/dpkg.gitcd to root dpkg folder:
cd dpkggit checkout 1.20.12Apply patch:
Copy patch to root dpkg folder:
cp -rp ../patches/0001-dpkg-Add-Zstandard-compression-and-decompression-sup.patch .patch -p1 -i 0001-dpkg-Add-Zstandard-compression-and-decompression-sup.patch./autogen./configuremake -j$(nproc)make checksudo dpkg-buildpackage -b -uc -usAdding Ubuntu archive alternative install (Debian bookworm)
Add to /etc/apt/source.list:
deb [signed-by=/usr/share/keyrings/archive.ubuntu.com-archive-keyring.gpg] http://no.archive.ubuntu.com/ubuntu kinetic mainImport the key:
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/archive.ubuntu.com-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 871920D1991BC93CAdd to /etc/apt/preferences:
Package: *
Pin: release a=kinetic
Pin-Priority: -1000Run:
sudo apt updateThen:
sudo apt install dpkg=1.21.9ubuntu1Replace the version with current. Check with:
apt policy dpkgRemember to pin the dpkg package in /etc/apt/preferences
Package: dpkg
Pin: release *
Pin-Priority: -100Credits
- Debian Bug report logs – #892664 dpkg: Please add decompression support for zstd
See anything wrong, or just want to contribute: Edit this post on GitHub: Edit this page