dpkg
can be instructed not to ask for confirmation when replacing a configuration file (with the --force-confdef --force-confold
options). Interactions can, however, have three other sources: some come from APT itself, some are handled by debconf
, and some happen on the command line due to package configuration scripts (sometimes handled by ucf).
debconf
需要较详细的说明。此程序原本的设计就是控制给用户看到的相关性及数量,以及显示的方法。问题需有最小的优先权;拥有最小优先权以上的问题才显示。debconf
缺省的答案 (由软件包维护者设置) 会略过。
noninteractive
,就停用所有的用户交互。若软件包试图显示信息性说明,则以电子邮件送给管理者。
debconf
时,用到 dpkg-reconfigure
工具,它是来自 debconf 软件包;相关的命令是 dpkg-reconfigure debconf
。配置值可能是在需要时暂时取代的环境变量 (例如,DEBIAN_FRONTEND
控制接口,如同在 debconf(7) 手册页面所述)。
dpkg
运行的配置脚本。不幸的是,没有标准的解法且没有较佳的答案。
/dev/null
文件转向给 命令 </dev/null
,或由新的键入字符串取代。以上的方法都不是 100 % 可靠,但它们可以转至缺省的答案,因为大部分的脚本已考量到无默认值的答案。