Debian – Repackaging a Debian package

debianpackagingUbuntu

I need instructions on how to do repackage a .deb package.

Situation:

I have a .deb package for an application with no source. I need to modify a Description field, save the file change and repackage back into a .deb package.

Is there a step by step on how to do that?

Best Answer

You need to modify the control file. This is the process:

dpkg-deb -x foo.deb tmpdir
dpkg-deb --control foo.deb tmpdir/DEBIAN
nano tmpdir/DEBIAN/control
dpkg -b tmpdir modified.deb
Related Question