以下のような選択肢が出ることがある。例えばYを答えさせたい場合を考える。
Configuration file `/etc/grub.d/10_linux' ==> 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 situation The default action is to keep your current version. *** 10_linux (Y/I/N/O/D/Z) [default=N] ? Y Installing new version of config file /etc/grub.d/10_linux ...
その場合は以下のように、dpkgの--force-confnewオプションをaptitudeに渡す。渡せるオプションの種類はdpkgのヘルプに詳しい。
# aptitude -y -o Dpkg::Options::="--force-confnew"
上のオプションを与えた場合、以下のように出力が変化する。
Configuration file `/etc/grub.d/10_linux' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. ==> Using new file as you requested. Installing new version of config file /etc/grub.d/10_linux ...