When running apt-get -y install <packages ...>
on Ubuntu 10.04 I would like apt-get
(or aptitude
if that makes it easier) to not prompt me when installing additional dependencies (behavior of -y
as I understand it) and but not prompt me about overwriting configuration files, instead assume to keep the existing ones always (which is usually the default). Unfortunately --trivial-only
seems to be the inverse of -y
and not affect the prompt that is shown, according to the man
page.
In particular packages auch as samba
, nullmailer
, localepurge
and lighttpd
have forced me to interact with the terminal, even though the whole procedure was scripted and meant to be non-interactive.
You may use:
For only specific packages, e.g. mypackage1 mypackage2:
Source: http://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/
You can find more information and more options in the dpkg manual at http://manpages.ubuntu.com/manpages/xenial/en/man1/dpkg.1.html or
man dpkg
and i.e. look for "confdef".