Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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?

share|improve this question
See also How to create a DEB file manually? – Gilles May 5 '12 at 0:24
up vote 5 down vote accepted

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.