To install programs in Ubuntu I usually do sudo apt-get install <program_name> -y
.
There are some particular programs I install that ask me non-password configuration questions.
For example, after doing sudo apt-get install postfix -y
I was asked for particular Postfix set of configurations, although the default was just fine to me.
How can one make sure an install that asks non password question won't ask it nothing? Surly, the only reason is to automate a few, particular installation processes.
Note: The solution I seek is per program, not global.
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install package-name
). – Chai T. Rex Jan 21 '18 at 12:41apt-get install
command. – Arcticooling Jan 21 '18 at 12:43sudo DEBIAN_FRONTEND=noninteractive apt-get -y install package-name
. – Chai T. Rex Jan 21 '18 at 12:44sudo apt-get -y install package-name DEBIAN_FRONTEND=noninteractive
is good. – Arcticooling Jan 21 '18 at 12:48DEBIAN_FRONTEND=noninteractive
part has to come just beforeapt-get
. – Chai T. Rex Jan 21 '18 at 13:03