I am creating a debian package (.deb)
I wanted to get answer to some questions.
Somehow, installation of newly created .deb file was not asking question after asking once, even if package is purged
Setting question priority critical does not help
How can remove old answers totally?
This is important during package creation page
2
Answers
After a bit of search I found that, debconf stores answers in /var/cache/debconf/config.dat.
Open it, search for the concerned package and remove all details from this file.
Another way to remove all of your package’s questions from debconf’s database is to call
db_purge
in yourpostrm
script, when removing or purging the package.You have to previously load the debconf library:
. /usr/share/debconf/confmodule
For example: