Skip to content

Instantly share code, notes, and snippets.

@ihorlaitan
Last active September 29, 2017 11:32
Show Gist options
  • Save ihorlaitan/588f6f18d5f7f5b9eb81d58b64bc5198 to your computer and use it in GitHub Desktop.
Save ihorlaitan/588f6f18d5f7f5b9eb81d58b64bc5198 to your computer and use it in GitHub Desktop.
Use folowing Linux commands to repackage dep package:
1: Extract deb package
# dpkg-deb -x <package.deb> <dir>
2: Extract control-information from a package
# dpkg-deb -e <package.deb> <dir/DEBIAN>
3. After completed to make changes to the package, repack the deb
# dpkg-deb -b <dir> <new-package.deb>
or
ar -xv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment