Bug 2173927 - dnf5 group remove removes a fraction of packages it installed
Summary: dnf5 group remove removes a fraction of packages it installed
Keywords:
Status: MODIFIED
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marek Blaha
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-28 12:35 UTC by Martin Banas
Modified: 2023-03-21 12:55 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.