Skip to content

Instantly share code, notes, and snippets.

@pohmelie
Last active September 8, 2020 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pohmelie/69c69fa50cf1ba01c368bdf9b2b570c4 to your computer and use it in GitHub Desktop.
Save pohmelie/69c69fa50cf1ba01c368bdf9b2b570c4 to your computer and use it in GitHub Desktop.
Repack deb file
#!/usr/bin/env bash
rm -rf tmp
dpkg-deb -R $1 tmp
read -p "Press [enter] when done"
mv $1 $1.original
dpkg-deb -Zgzip -b tmp $1
@pohmelie
Copy link
Author

pohmelie commented Oct 9, 2017

Run as

fakeroot -- ./repack-deb.sh your-package.deb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment