2023年8月16日 星期三

zst compression not supported by apt/dpkg

for i in *.deb;do
echo $i
rm debian-binary control.tar.xz data.tar.xz control.tar.zst data.tar.zst
ar x $i

# 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

# Re-create the Debian package in /tmp/
ar -m -c -a sdsd  /tmp/$i debian-binary control.tar.xz data.tar.xz

done


沒有留言: