Super User is a question and answer site for computer enthusiasts and power users. 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 have build a debian package with:

$ dpkg-buildpackage -rfakeroot

now I would like to change the configuration in the .dsc file and build again. How can I clean the files created by the previous build? I tried

$dpkg-buildpackage -tc

but it seems that doesn't do the job.

share|improve this question
up vote 3 down vote accepted

Please use debuild instead of calling dpkg-buildpackage directly, as that's just one of the steps. Simplest basic method is to build the binary packages along with unsigned source and unsigned changelog, do in the debian/ directory of the source

$ debuild -uc -us

You can call the clean target on debuild to clean up.

$ debuild clean
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .