如何在 CentOS/RHEL 上查看 RPM 包的更改日志
更多: zhilu jiaocheng

情形 2:不安装就查看rpms的变更日志(使用rpm文件)

语法:

# rpm -qp --changelog [path to rpm file]

例子:

# rpm -qp --changelog rsync-3.0.6-12.el6.x86_64.rpm
* Fri Mar 28 2014 Pavel Šimerda  - 3.0.6-12
- Resolves: #1011219 - Typo in manpage
* Wed Mar 26 2014 Pavel Šimerda  - 3.0.6-11
- Resolves: #981797 - rsync -X is ineffective when setting owner/group
[Output truncated]

情形 1:检查已安装 rpm 的更改日志

语法:

# rpm -q --changelog [rpm name]

例子:

# rpm -q --changelog rsync-3.0.9-17.el7.x86_64
- Resolves: #1032637 - rsync unit tests cannot be compiled
- switch to hardened build
* Tue Jan 28 2014 Pavel Šimerda  - 3.0.9-14
- Resolves: #1052814 - rsync command is terminated with SIGSEGV
- Resolves: #1052814 - add missing patch file
[Output truncated]
日期:2020-09-17 00:13:14 来源:oir作者:oir