Installing mailutils using apt-get without user intervention

南楼画角 提交于 2019-12-10 03:49:22

问题


While installing mailutils on ubuntu 12.04 using apt-get, there are 2 instances when manual intervention is required, first to select the site configuration and secondly to enter the hostname of the box. Is there a way to automate the installation? I need to install the package on many servers and being a n00b sys admin, I haven't been able to find a solution yet. I can make and install from source, however it has other problems. Thanx.


回答1:


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



回答2:


You'll likely want to look into debconf configuration specifics. Here's a link that should help.



来源:https://stackoverflow.com/questions/15469343/installing-mailutils-using-apt-get-without-user-intervention

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!