我正在编写一个脚本,用于无人值守安装我们的 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)