Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-81778

libdnf-0.63.0-19 incorrectly reports downgrades on package updates

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-8.10
    • libdnf
    • No
    • Low
    • rhel-swm
    • ssg_core_services
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      dnf history info reports that a package was downgraded when in fact it was upgraded.

      What is the impact of this issue to you?

      The output of dnf history info cannot be trusted.

      Please provide the package NVR for which the bug is seen:

      libdnf-0.63.0-19

      How reproducible is this bug?:

      Every time

      Steps to reproduce

      1. dnf install -y zziplib-0:0.13.68-7.el8
      2. dnf upgrade -y zziplib-0:0.13.68-8.el8
      3. dnf upgrade -y zziplib-0:0.13.68-9.el8
      4. dnf history info x..y

      where 'x' refers to the transaction in step 2 and 'y' refers to the transaction in step 3.

      Expected results

      `dnf history info` should show that zziplib was upgraded.

      Actual results

      `dnf history info` shows that the package was downgraded:

      [root@r810-dnf ~]# dnf history list
      Updating Subscription Management repositories.
      ID     | Command line                                                                                           | Date and time    | Action(s)      | Altered
      -------------------------------------------------------------------------------------------------------------------------------------------------------------
           9 | upgrade -y zziplib-0:0.13.68-9.el8                                                                     | 2025-02-28 15:06 | Upgrade        |    1   
           8 | upgrade -y zziplib-0:0.13.68-8.el8                                                                     | 2025-02-28 15:05 | Upgrade        |    1   
           7 | install -y zziplib-0:0.13.68-7.el8                                                                     | 2025-02-28 15:05 | Install        |    1   
           6 | erase zziplib                                                                                          | 2025-02-28 15:04 | Removed        |    1   
           5 | update libdnf                                                                                          | 2025-02-28 15:03 | Upgrade        |    3   
           4 | upgrade zziplib-0:0.13.68-9.el8                                                                        | 2025-02-28 15:02 | Upgrade        |    1   
           3 | upgrade zziplib-0:0.13.68-8.el8                                                                        | 2025-02-28 15:01 | Upgrade        |    1   
           2 | install zziplib-0:0.13.68-7.el8                                                                        | 2025-02-28 15:01 | Install        |    1   
           1 |                                                                                                        | 2024-11-27 11:50 | Install        |  823 EE
      [root@r810-dnf ~]# dnf history info 7..last
      Updating Subscription Management repositories.
      Transaction ID : 7..9
      Begin time     : Fri 28 Feb 2025 03:05:19 PM CET
      Begin rpmdb    : 811:747f7b6cb3a09a3c9604441004d53536a8003a02
      End time       : Fri 28 Feb 2025 03:06:39 PM CET (80 seconds)
      End rpmdb      : 812:8950fc418130e800eea906274002fb30d68b468c
      User           : root <root>
      Return-Code    : Success
      Releasever     : 8
      Command Line   : install -y zziplib-0:0.13.68-7.el8
      Command Line   : upgrade -y zziplib-0:0.13.68-8.el8
      Command Line   : upgrade -y zziplib-0:0.13.68-9.el8
      Comment        : 
      Comment        : 
      Comment        : 
      Packages Altered:
          Install zziplib-0.13.68-9.el8.x86_64 @rhel-8-for-x86_64-appstream-rpms
      [root@r810-dnf ~]# dnf history info 8..last
      Updating Subscription Management repositories.
      Transaction ID : 8..9
      Begin time     : Fri 28 Feb 2025 03:05:51 PM CET
      Begin rpmdb    : 812:914ae289c2f55dece25009390250ac236e556876
      End time       : Fri 28 Feb 2025 03:06:39 PM CET (48 seconds)
      End rpmdb      : 812:8950fc418130e800eea906274002fb30d68b468c
      User           : root <root>
      Return-Code    : Success
      Releasever     : 8
      Command Line   : upgrade -y zziplib-0:0.13.68-8.el8
      Command Line   : upgrade -y zziplib-0:0.13.68-9.el8
      Comment        : 
      Comment        : 
      Packages Altered:
          Downgraded zziplib-0.13.68-7.el8.x86_64 @@System
          Downgrade  zziplib-0.13.68-9.el8.x86_64 @rhel-8-for-x86_64-appstream-rpms 

              packaging-team-maint packaging-team-maint
              rhn-support-jsantos Juan Santos
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: