OS
Linux
dpkg 安装 zst 的 deb 包

解决 dpkg 无法安装 zst 的 deb 包

# Extract files from the archive
ar x some-package.deb
# Uncompress zstd files an re-compress them using xz
# zstd -d < control.tar.zst | xz > control.tar.xz
# zstd -d < data.tar.zst | xz > data.tar.xz
zstd -d < control.tar.zst | xz > control.tar.xz && zstd -d < data.tar.zst | xz > data.tar.xz
# Re-create the Debian package in /tmp/
ar -m -c -a sdsd /tmp/some-package.deb debian-binary control.tar.xz data.tar.xz
# Clean up
rm debian-binary control.tar.xz data.tar.xz control.tar.zst data.tar.zst