I'm using Ubuntu 18.04 and I'm automating the installation of a Debian package via
This package requires me to review a license agreement and choose to accept or deny it, and I learned I can use "preseeding" to automate this process which is talked about in "Appendix B. Automating the installation using preseeding".
The section "B.3. Creating a preconfiguration file" said the following about the
For debconf variables (templates) used only in the installer itself, the owner should be set to “d-i”; to preseed variables used in the installed system, the name of the package that contains the corresponding debconf template should be used. Only variables that have their owner set to something other than "d-i" will be propagated to the debconf database for the installed system.
My questions are:
- What is the difference between an "installer" and an "installed system"?
- I am using
aptto install this package. Is this the "installer" case?
- What is the debconf database? From what I've learned so far, it is the file
/var/cache/debconf/config.dat. Am I right?
- The last sentence of "...'d-i' will be propagated to the debconf database for the installed system" makes me feel that if I use
aptto install a package and use
d-iin the preseed file, the
config.datfile would not be changed by my installation. But after I ran
debconf-set-selections <my-preseed-file>, I found the
config.datfile was changed. So I'm confused by what exactly this part of document means.
Thanks for the help!