Bug 2173927

Summary: dnf5 group remove removes a fraction of packages it installed
Product: [Fedora] Fedora Reporter: Martin Banas <mbanas>
Component: dnf5Assignee: Marek Blaha <mblaha>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: agurenko, jkolarik, mblaha, nsella, pkratoch, rpm-software-management
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-30 12:45:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Banas 2023-02-28 12:35:09 UTC
Description of problem:
dnf5 group remove don't remove all packages it installed in previous step.

Version-Release number of selected component (if applicable):
[root@localhost ~]# dnf5 --version
dnf5 version 5.0.6
dnf5 plugin API version 1.0
libdnf5 version 5.0.6
libdnf5 plugin API version 1.0

How reproducible:
always

Steps to Reproduce:
1. # dnf5 group install admin-tools
2. # dnf5 group remove admin-tools

Actual results:
# dnf5 group install admin-tools
Transaction Summary:
 Installing:      170 packages
# dnf5 group remove admin-tools
Transaction Summary:
 Removing:         16 packages
 Changing reason:    1 packages

Expected results:
All packages should be removed, as old dnf4 does (on the same system):

# dnf group install admin-tools
Transaction Summary
================================================================================
Install  170 Packages

# dnf group remove admin-tools
Transaction Summary
================================================================================
Remove  170 Packages

Additional info:

Comment 1 Marek Blaha 2023-03-03 08:28:45 UTC
Thanks for spotting this.
Should be fixed by PR https://github.com/rpm-software-management/dnf5/pull/329