如何使用dpkg升级 - (Y / I / N / O / D / Z)[默认= N]? ÿ

时间:2016-09-06 03:07:39

标签: chef

我是尝试

如何通过主厨升级dpkg来处理这种情况?

dpkg_package "#{Chef::Config[:file_cache_path]}/elasticsearch-#{version}.deb" do
  action :install
end

==> Modified (by you or by a script) since installation.  ==> Package  
distributor has shipped an updated version.    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     : start a shell to examine the sit

我希望默认为N

1 个答案:

答案 0 :(得分:1)

一般来说,这不应该发生,我们在$DEBIAN_FRONTEND=noninteractive下运行所有​​安装命令。如果您从Chef那里看到这个,那可能意味着某些东西已经变得非常错误了。