[CentOS] Viewing changelog for packages to be updated

Tue Oct 6 11:41:12 UTC 2020
Simon Matter <simon.matter at invoca.ch>

> On Wed, Aug 26, 2020 at 11:18 PM Simon Matter via CentOS
> <centos at centos.org> wrote:
>>
>> > On Wed, Aug 26, 2020 at 2:54 PM Kenneth Porter <shiva at sewingwitch.com>
>> > wrote:
>> >>
>> >> Is there some way to see the RPM changelog entries for a prospective
>> yum
>> >> update? Ideally I'd like to see just the entries that are newer than
>> the
>> >> version of the package I already have.
>> >>
>> >> I saw a new kernel in today's yum-cron email and I'd like to know
>> what
>> >> it's
>> >> about and how urgent the issue is for me.
>> >
>> > You may want to look into git.centos.org. For example, spec file diff
>> > for the latest C7 kernel update can be seen here:
>> >
>> > https://git.centos.org/rpms/kernel/c/c53828b00fb26a7f96b149eef5e220a5ed4cc4e5?branch=c7#_5
>>
>> Hi Akemi,
>>
>> Thanks for the hint about git.centos.org.
>> But, is there some yum/dnf utility which can show the changelog changes?
>> If not, then I may expand one of my rpm tools to do it.
>>
>> Simon
>
> yum -q --changelog xxx.rpm
>
> will show the changelog.

On CentOS 8 there is also

dnf check-upgrade --changelog

but I liked to have a tool which works on older distribution as well.

Therefore I've made 'pkgchangelog' which generates changelogs like the one
shown below. It's available here:

http://www.invoca.ch/pub/packages/pkgmonitor/public/pkgchangelog

Regards,
Simon

[root at dhcp-1-158 ~]# yum --quiet check-update | pkgchangelog --stdin 2>
/dev/null
================================================================================

Packages sharing changelog of source `bind':
  bind-export-libs.x86_64
  bind-libs-lite.x86_64
  bind-libs.x86_64
  bind-license.noarch
  bind-utils.x86_64
  python3-bind.noarch

Changelog for version `9.11.13-5.el8_2' -> `9.11.13-6.el8_2.1'

* Tue Aug 04 2020 Tomas Korbar <tkorbar at redhat.com> - 32:9.11.13-6.1
- Validate configuration files with CIDRs host bits set (#1865785)

* Fri May 22 2020 Petr Menšík <pemensik at redhat.com> - 32:9.11.13-5.1
- Add CVE tests to codebase

================================================================================

Packages sharing changelog of source `device-mapper-multipath':
  device-mapper-multipath-libs.x86_64
  device-mapper-multipath.x86_64
  kpartx.x86_64

Changelog for version `0.8.3-3.el8' -> `0.8.3-3.el8_2.3'

* Tue Jul 21 2020 Benjamin Marzinski <bmarzins at redhat.com> 0.8.3-3.3
- Add 0022-libmultipath-fix-files-read-from-config_dir.patch
  * Fix for bz #1858993. Only read files ending in .conf
- Resolves: bz #1858993

* Fri Jul 17 2020 Benjamin Marzinski <bmarzins at redhat.com> 0.8.3-3.2
- Bump release number for rebuild
- Resolves: bz #1856944

* Wed Jul 15 2020 Benjamin Marzinski <bmarzins at redhat.com> 0.8.3-3.1
- Add 0020-libmultipath-make-dm_get_map-status-return-codes-sym.patch
- Add 0021-multipathd-fix-check_path-errors-with-removed-map.patch
  * The above 2 patches fix bz #1856944. multipathd handles external
    device removal better.
- Resolves: bz #1856944