【发布时间】:2013-03-06 08:20:57
【问题描述】:
在 ubuntu 12.04 上使用 apt-get 安装 mailutils 时,有两种情况需要手动干预,首先选择站点配置,其次输入框的主机名。有没有办法自动安装?我需要在许多服务器上安装软件包并且作为 n00b 系统管理员,我还没有找到解决方案。我可以从源代码制作和安装,但是它还有其他问题。谢谢。
【问题讨论】:
在 ubuntu 12.04 上使用 apt-get 安装 mailutils 时,有两种情况需要手动干预,首先选择站点配置,其次输入框的主机名。有没有办法自动安装?我需要在许多服务器上安装软件包并且作为 n00b 系统管理员,我还没有找到解决方案。我可以从源代码制作和安装,但是它还有其他问题。谢谢。
【问题讨论】:
您可能需要查看 debconf 配置细节。这是link that should help。
【讨论】:
您可以使用debconf-set-selections 预选答案:
$ 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
【讨论】: