I'm trying to script automation of a package (steamcmd).
The case figure is the user of the script has been informed pre-emptively of what EULA he/she has agreed to.
good now with that out of the way these are some packages for which this already works:
- ubuntu restricted extras
- corefonts : https://askubuntu.com/a/25614/307184
- and oracle java jdk : https://ubuntuforums.org/showthread.php?t=953779&page=2&s=afccde556ea4e48a02e45fd073789c31
none ever bothered to explain how they figured out the independent syntax for each of these but I'd like to finally get to the bottom of this so that anyone with the use of this ask ubuntu question may be able to automate installation for package N.
from what I gather the syntax is supposed to be something like :
echo PACKAGENAME PACKAGENAMEorUSERSPACE/accepted-PACKAGENAME-EULAPART select true | sudo debconf-set-selections
sudo apt install PACKAGENAME
although I haven't been able to get it to work thus far with many varients of :
echo steamcmd steamcmd/accepted-steamcmd-eula select true | sudo debconf-set-selections
so as it turns out installing the app using the GUI once will allow you to then use
debconf-show
to determine the correct syntax for your "auto-accept" for example :or
stars show modified entries,
among those there are modified entries that took no value.
For these, you'll have to enter :
for the one's where you want a value :
or
depending on the value type.
once you've perfectly matched the expected.
should breeze right on through the middle of your script without stopping it.