Is there a way to make apt-get install answer "yes" to the "Do you want to continue [y/N]?"?
|
|
|
via the apt-get man page:
|
|||
|
|
|
The problem with:
is that it will ask for a manual confirmation if the package signature owner's public-key is not in the keyring, or some other conditions. to be sure it does not ask a confirmation just do this:
If you want to have these settings permanent, create a file in /etc/apt/apt.conf.d/, like /etc/apt/apt.conf.d/90forceyes with the following content:
|
|||||||||||||||||||||
|
|
Note that if you also want to automatically go by the default answers when an interactive prompt appears, you can use Single install:
E.g.:
All updates:
You can set up finer options with Examples:
or
Example of interactive prompt:
Interesting read: Perform an unattended installation of a Debian package |
||||
|
|
This should at least be in "Are you sure?", of course I am sure, I am not a trained monkey simply typing away at the keyboard, going click happy. Next the door will ask, "Are you sure you want to go outside?" |
|||||||||
|
|
From the apt-get HOWTO Use the |
|||
|
|
|
|||||||||
|
|
generally the options from the manual should work well
if it does not succeed you can try to use the
did use this with my vagrant shell provisioning script PS: in case you want non-interactive but with generally stating no then you can try this:
|
||||
|
|
