Server Fault is a question and answer site for system and network administrators. 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

Per this question I've now got wonky preseed values for my gitolite installations such that gitolite fails to install. I need to clear my debconf database of a few keys, but I see no way to accomplish this. Neither did this fellow, as near as I can tell.

Is it possible to clear the debconf database of a few values?

share|improve this question
up vote 11 down vote accepted
echo PURGE | debconf-communicate packagename

This will remove ALL the config for this package, so if you want to save some, get them first with debconf-get-selections, then replace the ones you wanted to keep.

You can find all possible actions in the Debian packaging manual. Instead of purging all question of a particular package you can try

echo RESET question | debconf-communicate packagename


echo UNREGISTER question | debconf-communicate packagename
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.