因此,我刚刚在服务器上进行了软件包升级,并被问到以下问题,因为我之前已经被问过数百次了:
Configuration file `/etc/nginx/fastcgi_params'
==> 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.
*** fastcgi_params (Y/I/N/O/D/Z) [default=N] ?
肌肉记忆占了上风,我按下回车键,然后默认选项 N(保留您安装的版本)。
不过,我其实很想看看我的版本和维护版本之间的区别。可能会有一些改进,也可能没有。事后很难知道。
现在我知道我可以下载一份软件包,或者翻遍我的缓存找到它,但有没有更快的方法?例如,有没有办法让我浏览配置文件,然后再次询问这个问题?
注意:我不一定想覆盖我的副本 - 我只是想将它与新的副本进行比较。
答案1
该文件的维护者版本应具有相同的名称但添加了扩展名.dpkg-dist
。
因此,您的情况下/etc/nginx/fastcgi_params.dpkg-dist
应该是您的维护者的版本/etc/nginx/fastcgi_params
。
进一步来说,你可以使用快速差异来比较两者:
$ diff /etc/nginx/fastcgi_params{,.dpkg-dist}
5a6
> fastcgi_param SCRIPT_FILENAME $request_filename;
21c22
< fastcgi_param HTTPS $https;
---
> fastcgi_param HTTPS $https if_not_empty;