Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 5 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

or

echo UNREGISTER question | debconf-communicate packagename
share|improve this answer
add comment

Your Answer

 
discard

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.