Debconf: Difference between revisions

From DWIKI
No edit summary
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
*[http://www.fifi.org/doc/debconf-doc/tutorial.html The Debconf Programmer's Tutorial]
*[http://www.fifi.org/doc/debconf-doc/tutorial.html The Debconf Programmer's Tutorial]
*http://wiki.debian.org/DebConf
*http://wiki.debian.org/DebConf
*[http://www.debian.org/doc/packaging-manuals/debconf_specification.html Configuration management]


/var/cache/debconf/config.dat
 
The actual config data
/var/cache/debconf/config.dat
 
The location of relevant files per package
/var/lib/dpkg/info
 
Finding packages that should work for dpkg-reconfigure:
find /var/lib/dpkg/info -name \*.postinst | xargs grep -l debconf| sed 's/^.*\/\(.*\)/\1/g;s/.postinst//g'
 
 
=FAQ=
==delete values from database==
When testing your config file you will find that after 1 try it no longer shows dialog, fix this by setting priority to critical and clean database.
It does not seem possible to directly edit config.dat, but:
 
echo PURGE | debconf-communicate <packagename>

Latest revision as of 18:57, 29 January 2015


The actual config data

/var/cache/debconf/config.dat

The location of relevant files per package

/var/lib/dpkg/info

Finding packages that should work for dpkg-reconfigure:

find /var/lib/dpkg/info -name \*.postinst | xargs grep -l debconf| sed 's/^.*\/\(.*\)/\1/g;s/.postinst//g'


FAQ

delete values from database

When testing your config file you will find that after 1 try it no longer shows dialog, fix this by setting priority to critical and clean database. It does not seem possible to directly edit config.dat, but:

echo PURGE | debconf-communicate <packagename>