Repacking Debian .deb package using different compression
Uncategorized 0 CommentsJust a quick howto on repacking Debian .deb package from one compression to the other.
- Create a temporary directory:
mkdir ./tmp - Extract the package contents:
dpkg --extract package.deb ./tmp - Extract the control files (must be done to a directory called DEBIAN):
dpkg --control package.deb ./tmp/DEBIAN - Create the new package (-Z accepts gzip, bzip2, xz and none):
dpkg-deb --build -Zgzip ./tmp package_gzip.deb - Profit.