gsandie online notebook

debian package seeding notes

Remember about debconf-get-selections (part of debconf-utils). Can use it in conjunction with debconf-set-selections to setup configuration seeds for files.

Very useful when installing the Sun Java JRE.

$ cat sun_java.seed
sun-java6-bin   shared/accepted-sun-dlj-v1-1    boolean true
sun-java6-jre   shared/accepted-sun-dlj-v1-1    boolean true
sun-java6-jdk   shared/accepted-sun-dlj-v1-1    boolean true 

……

$ sudo debconf-set-selections sun_java.seed
$ sudo apt-get install sun-java6-jre

This sort of stuff can be used with chef, in the package resource, using the response_file attribute.