Last active
September 18, 2018 19:52
-
-
Save XMB5/45cb6f391bb2a1accff7eaabf653ce66 to your computer and use it in GitHub Desktop.
Change deb file compression algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMP=gzip | |
for i in *.deb; do | |
echo "$i" | |
mkdir "$i.extract" | |
dpkg-deb -R "$i" "$i.extract" | |
rm "$i" | |
dpkg-deb -b "-Z$COMP" "$i.extract" "$i" | |
rm -rf "$i.extract" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://manpages.debian.org/jessie/dpkg/dpkg-deb.1.en.html