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
- dnf install -y zziplib-0:0.13.68-7.el8
- dnf upgrade -y zziplib-0:0.13.68-8.el8
- dnf upgrade -y zziplib-0:0.13.68-9.el8
- 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
- relates to
-
RHEL-81779 libdnf-0.69.0-12 incorrectly reports downgrades on package updates
-
- Planning
-