Installing mailutils with apt-get without user intervention

When installing mailutils on ubuntu 12.04 using apt-get, there are 2 instances when manual intervention is required, first select the site configuration and, secondly, enter the host name. Is there a way to automate the installation? I need to install the package on many servers and be n00b sys admin, I still could not find a solution. I can make and install from source, however it has other problems. Thanx.

+6
source share
2 answers

You can use debconf-set-selections to pre-select answers:

 $ debconf-set-selections <<< "postfix postfix/mailname string your.hostname.com" $ debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'" $ apt-get install -y mailutils 
+8
source

You will probably want to explore the debconf configuration features. Here is a link that should help .

+1
source

All Articles