Skip to content

Instantly share code, notes, and snippets.

@axeliodiaz
Forked from shamil/howto_deb_repackage.txt
Last active January 10, 2023 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save axeliodiaz/83b619740e2cfc08db64 to your computer and use it in GitHub Desktop.
Save axeliodiaz/83b619740e2cfc08db64 to your computer and use it in GitHub Desktop.
Howto repackage deb packages
Use folowing steps to repackage dep package:
1: Make dirs
# mkdir extract/DEBIAN build -p
2: Extract deb package
# dpkg-deb -x <package.deb> extract/
3: Extract control-information from a package
# dpkg-deb -e <package.deb> extract/DEBIAN
4. After completed to make changes to the package, repack the deb
# dpkg-deb -b extract/ build/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment