是否可以更改 apt 的默认 diff 工具(或者可能是 shell 的)?

Ryc*_*chu 5 configuration apt diff tools default-programs

我不确定它是apt设置shell还是设置,但是每当配置文件发生冲突时,apt upgrade我都会看到以下选项:

Y or I : install the package maintainer's version
N or O : keep your currently-installed version
  D    : show the differences betweeen the versions
  Z    : start a shell to examine the situation
Run Code Online (Sandbox Code Playgroud)

是否可以更改D选项以使用其他内容(例如,mcdiff)?

使用Z选项sudo mcdiff $DPKG_CONFFILE_OLD $DPKG_CONFFILE_NEW然后然后exit有点烦人。