Needed to change some files inside a .deb archive; found a short tutorial here:
Repack a .deb-archive with dpkg-deb
For backup reasons a c&p from the blog above:
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
$ mkdir -p extract/DEBIAN | |
$ dpkg-deb -x package.deb extract/ | |
$ dpkg-deb -e package.deb extract/DEBIAN | |
[...do something, e.g. edit the control file...] | |
$ mkdir build | |
$ dpkg-deb -b extract/ build/ | |
-x extracts the package contents | |
-e extracts the control files | |
-b builds the new package |
Thanks maff.