If I run:
sudo apt-get --yes install postfix
or
sudo bash -c 'yes | apt-get --yes install postfix'
an interactive prompt appears to configure postfix. I need to automate the installation of postfix (I can modify the configuration files after the install).
Is there some magic that lets me install postfix (and other package) without human intervention?
Best Answer
Set the
DEBIAN_FRONTEND
tononinteractive
:This is also applicable to
dpkg --reconfigure
,dpkg-configure
, etc.From
man 7 debconf
:If you do set
noninteractive
, you should consider answeringdebconf
questions by usingdebconf-set-selections
.