使用apt-get安装mailutils,无需用户干预 [英] Installing mailutils using apt-get without user intervention

查看:340
本文介绍了使用apt-get安装mailutils,无需用户干预的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用apt-get在ubuntu 12.04上安装mailutils时,需要手动干预时有2个实例,首先选择站点配置,其次要输入框的主机名。有没有办法自动化安装?我需要在许多服务器上安装该软件包,并且是一个n00b系统管理员,我还没有找到解决方案。我可以从源头进行安装,但是还有其他问题。 Thanx。

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.

推荐答案

您可以使用 debconf-set-choices - 选择答案:

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

这篇关于使用apt-get安装mailutils,无需用户干预的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆