Get selected debconf answers

view all manual selections

for PACKAGE in $(debconf-show --listowners); do
   echo ${PACKAGE}
   sudo debconf-show ${PACKAGE} | grep "*"
done
apt-get install debconf-utils
 
# replace <TAB> with tabulator key
for i in $(debconf-show ${PACKAGE} | grep "*" | cut -d" " -f2 | cut -d":" -f1); do 
	debconf-get-selections | egrep "$i<TAB>";
done
 
debconf-get-selections  | grep -v "#"
 
debconf-show ddclient | grep '*'
 
 
apt-get install debconf-utils
sudo debconf-set-selections

show installed packages

debconf-show  --listowners
debconf-show mysql-server-5.0 | grep "*" | cut -d" " -f2 | cut -d":" -f1
 
debconf-get-selections --installer > config.cfg
debconf-get-selections >> config.cfg
 
/var/log/installer/cdebconf/questions.dat

Links
http://manpages.ubuntu.com/manpages/lucid/de/man7/debconf-devel.7.html
https://help.ubuntu.com/8.04/installation-guide/i386/preseed-contents.html
http://wiki.hcoop.net/SetupNewMachines