-
Bug
-
Resolution: Unresolved
-
Minor
-
rhel-10.0.beta
-
dnf-4.20.0-1.el10
-
None
-
Impediment
-
Low
-
sst_cs_software_management
-
ssg_core_services
-
16
-
20
-
3
-
QE nak, Dev ack
-
True
-
-
No
-
None
-
-
Pass
-
Automated
-
Bug Fix
-
-
Proposed
-
-
Unspecified
-
None
Description of problem:
yum remove --duplicates and dnf remove --duplicates both return stderr when no duplicates are found. Since this is the expected replacement for yum-complete-transactions, the command is introducing an error where none should be present.
Version-Release number of selected component (if applicable):
4.7.0
Installed: dnf-0:4.7.0-16.el8_8.noarch at Tue Aug 29 17:51:15 2023
Built : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at Wed Mar 8 10:33:55 2023
Installed: rpm-0:4.14.3-26.el8.x86_64 at Tue Aug 29 17:50:53 2023
Built : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at Mon Dec 19 17:08:54 2022
4.7.0
Installed: dnf-0:4.7.0-16.el8_8.noarch at Tue Aug 29 17:51:15 2023
Built : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at Wed Mar 8 10:33:55 2023
Installed: rpm-0:4.14.3-26.el8.x86_64 at Tue Aug 29 17:50:53 2023
Built : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at Mon Dec 19 17:08:54 2022
How reproducible:
Consistently reproducible.
Steps to Reproduce:
1. dnf remove --duplicates 1>stdout.txt 2>stderr.txt
2. OR
3. yum remove --duplicates 1>stdout.txt 2>stderr.txt
Actual results:
cat stdout.txt
Updating Subscription Management repositories.
el8 84 kB/s | 1.5 kB 00:00
biw-8-server-rpms 83 kB/s | 1.5 kB 00:00
Red Hat CodeReady Linux Builder for RHEL 8 x86_ 137 kB/s | 4.5 kB 00:00
oracle-instanclient21-for-rhel8-x86_64 77 kB/s | 1.3 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStre 136 kB/s | 4.5 kB 00:00
SALT-PROJECT-3005-8-x86_64 90 kB/s | 1.5 kB 00:00
EPEL-8-x86_64 137 kB/s | 2.3 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS 114 kB/s | 4.1 kB 00:00
cat stderr.txt
Error: No duplicated packages found for removal.
Expected results:
If no duplicate packages are found, the command should exit with a return value of 0. It has removed all duplicate packages it has discovered, in this case, zero.
Additional info:
- clones
-
RHEL-6424 "dnf remove --duplicates" reports an error if no packages are duplicated
- Closed
- links to
-
RHBA-2024:132912 DNF stack bug fix and enhancement update