小编Ram*_*man的帖子

如何让 apt-get 从 Repo 无人值守的安装 debian 中接受新的配置文件

我正在编写一个脚本,用于无人值守安装我们的 repo 中的一个软件包,它是一个带有 Debian 标记配置文件的软件包。是否有任何选项可以传递给apt-get/aptitude以便它接受新的配置文件?

基本上我需要一个apt/aptitude相当于 dpkg --force-confnew

我需要回答apt-get使用 Y 安装时提出的以下问题


配置文件``/opt/application/conf/XXX.conf`'

==> File on system created by you or by a script.
==> File also in package provided by package maintainer.

What would you like to do about it ?  Your options are:
Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D     : show the differences between the versions
  Z …
Run Code Online (Sandbox Code Playgroud)

aptitude apt software-installation

27
推荐指数
3
解决办法
2万
查看次数

标签 统计

apt ×1

aptitude ×1

software-installation ×1