Translation(s): none

It is occasionally useful to change the metadata of Debian binary packages. Here are some typical use-cases:

First extract the files installed by the binary package:

$ dpkg-deb -x mypackage.deb mypackage

Next extract the package metadata:

$ dpkg-deb -e mypackage.deb mypackage/DEBIAN

At this point edit the control files in mypackage/DEBIAN. Finally, create the modified package:

dpkg-deb -b mypackage mypackage-new.deb