4

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?

George M
  • 13,959
Karlson
  • 5,875

1 Answers1

7

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