How do I check the changes of a proposed package update?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • yum

Issue

  • How to know all changelogs of updates package?
  • Is it possible to check a package changelog without install it?

Resolution

Install the yum-changelog plugin

The yum-changelog is a Yum plugin for viewing package changelogs before/after updating. The yum will invoke yum-changelog plugin if the --changelog option or the changelog command is used with yum.

[root@stest01 ~]# yum install yum-plugin-changelog
  • To list the changelog all the package, run:
[root@stest01 ~]# yum changelog all
Loaded plugins: changelog, product-id, search-disabled-repos, subscription-
              : manager

Listing all changelogs

==================== Installed Packages ====================
libcroco-0.6.8-5.el7.x86_64              installed
* Fri Jan 24 10:00:00 2014 Daniel Mach <dmach@redhat.com> - 0.6.8-5
- Mass rebuild 2014-01-24

* Tue Jul 16 09:00:00 2013 Matthias Clasen <mclasen@redhat.com> - 0.6.8-3
- Disable strict aliasing, since the code is not strict-aliasing-clean

* Fri Nov  9 10:00:00 2012 Kalev Lember <kalevlember@gmail.com> - 0.6.8-1
- Update to 0.6.8

xinetd-2.3.15-12.el7.x86_64            installed
* Fri Jan 24 10:00:00 2014 Daniel Mach <dmach@redhat.com> - 2:2.3.15-12
- Mass rebuild 2014-01-24

* Mon Jan  6 10:00:00 2014 Jan Synáček <jsynacek@redhat.com> - 2:2.3.15-11
- fixup of the previous patch
- Related:  #1037565
- Resolves: #1042357

* Fri Dec 27 10:00:00 2013 Daniel Mach <dmach@redhat.com> - 2:2.3.15-10
- Mass rebuild 2013-12-27
  • To list the changelog of the specific package, run:
[root@test01 ~]# yum changelog tree
Loaded plugins: changelog, product-id, search-disabled-repos, subscription-manager

Listing all changelogs

==================== Available Packages ====================
tree-1.6.0-10.el7.x86_64                 rhel-7-server-rpms
* Fri Jan 24 10:00:00 2014 Daniel Mach <dmach@redhat.com> - 1.6.0-10
- Mass rebuild 2014-01-24

* Fri Dec 27 10:00:00 2013 Daniel Mach <dmach@redhat.com> - 1.6.0-9
- Mass rebuild 2013-12-27

* Thu Jul  4 09:00:00 2013 Tim Waugh <twaugh@redhat.com> - 1.6.0-8
- Handle large UID/GID values (bug #980945).

* Thu Apr 11 09:00:00 2013 Tim Waugh <twaugh@redhat.com> - 1.6.0-7
- Document --du and --prune options in help output (bug #948991).

* Fri Feb 15 10:00:00 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sun Jul 22 09:00:00 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sat Jan 14 10:00:00 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Mon Dec  5 10:00:00 2011 Tim Waugh <twaugh@redhat.com> 1.6.0-3
- Put LFS_CFLAGS in CFLAGS not CPPFLAGS so they actually get used
  (bug #769655).

* Mon Jul  4 09:00:00 2011 Tim Waugh <twaugh@redhat.com> 1.6.0-2
- Don't strip the binary too early (bug #718456).

* Mon Jun 27 09:00:00 2011 Tim Waugh <twaugh@redhat.com> 1.6.0-1
- 1.6.0 (bug #716879).
  • To list the changelog while the package is update, run:
[root@test01 ~]# yum update tuned --changelog
Loaded plugins: changelog, product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package tuned.noarch 0:2.5.1-4.el7_2.2 will be updated
---> Package tuned.noarch 0:2.5.1-4.el7_2.3 will be an update
--> Finished Dependency Resolution

Changes in packages about to be updated:

ChangeLog for: tuned-2.5.1-4.el7_2.3.noarch
* Tue Feb  9 10:00:00 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 2.5.1-4.3
- fixed traceback during restart attempt
  resolves: rhbz#1305903


===============================================================================
  tuned bug fix update
===============================================================================
  Update ID : RHBA-2016:0545
    Release : 
       Type : bugfix
     Status : final
     Issued : 2016-03-31 00:00:00
       Bugs : 1305903 - Traceback during profile selection in inactive tuned
Description : The tuned packages contain a daemon that tunes system settings
            : dynamically. It does so by monitoring the usage of
            : several system components periodically.
            : 
            : This update fixes the following bug:
            : 
            : * Due to a bug, if the tuned-adm command was
            :   issued while the tuned service was not running,
            :   an attempt to automatically restart the tuned
            :   service failed with a traceback. The underlying
            :   source code has been patched to handle automatic
            :   restarting of the daemon correctly. As a result,
            :   restarting the tuned service no longer fails in
            :   the described situation. (BZ#1305903)
            : 
            : Users of tuned are advised to upgrade to these
            : updated packages, which fix this bug.

Dependencies Resolved

==================================================================================================================================================================================================================================
 Package                                         Arch                                             Version                                                      Repository                                                    Size
==================================================================================================================================================================================================================================
Updating:
 tuned                                           noarch                                           2.5.1-4.el7_2.3                                              rhel-7-server-rpms                                           193 k

Transaction Summary
==================================================================================================================================================================================================================================
Upgrade  1 Package

Total download size: 193 k
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for rhel-7-server-rpms
tuned-2.5.1-4.el7_2.3.noarch.rpm                                                                                                                                                                           | 193 kB  00:00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : tuned-2.5.1-4.el7_2.3.noarch                                                                                                                                                                                   1/2 
  Cleanup    : tuned-2.5.1-4.el7_2.2.noarch                                                                                                                                                                                   2/2 
  Verifying  : tuned-2.5.1-4.el7_2.3.noarch                                                                                                                                                                                   1/2 
  Verifying  : tuned-2.5.1-4.el7_2.2.noarch                                                                                                                                                                                   2/2 

Updated:
  tuned.noarch 0:2.5.1-4.el7_2.3                                                                                                                                                                                                  

Complete!

Diagnostic Steps

  • The more information can be found in package manual:
[root@test01 ~]# man yum-changelog

[root@test01 ~]# man yum-changelog.conf
  • Component
  • yum

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments