Skip to content

Instantly share code, notes, and snippets.

@amoilanen
Forked from shamil/howto_deb_repackage.txt
Created June 12, 2016 17:10
Show Gist options
  • Save amoilanen/17d0c9fdbf79f0bb0bd47817f5a4b2fe to your computer and use it in GitHub Desktop.
Save amoilanen/17d0c9fdbf79f0bb0bd47817f5a4b2fe to your computer and use it in GitHub Desktop.
Howto repackage deb packages
Use folowing steps 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment