Bug 1198660 - group remove: keep mandatory pkgs of other installed groups
Summary: group remove: keep mandatory pkgs of other installed groups
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Luscon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-04 15:22 UTC by zimon
Modified: 2015-12-02 17:35 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1657125 (view as bug list)
Environment:
Last Closed: 2015-12-02 09:43:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1227066 0 urgent CLOSED dnf incorrectly uninstalling dependencies 2021-02-22 00:41:40 UTC

Internal Links: 1227066

Description zimon 2015-03-04 15:22:09 UTC
Description of problem:
Had three environment groups istalled: Fedora Workstation, LXDE Desktop and MATE Desktop.

Decided I didn't like MATE, so wanted to remove the latest tried group "MATE Desktop".

dnf group remove "MATE Desktop"

dnf removed lots of packages which belong essentially to "Fedora Workstation" and "LXDE Desktop" groups.

System came unusable. Only way to fix it was to ssh in from a tablet and do manual install of all essential packages "Fedora Workstation" group and its subgroups have.

Version-Release number of selected component (if applicable):
dnf-0.6.4-1.fc21.noarch


How reproducible:
Assumely always.


Steps to Reproduce:
1. # dnf -y group install "MATE Desktop"
2. # dnf -y group remove "MATE Desktop"

Actual results:
Removes all packages belonging to said group, not caring if they are essential on some other groups which stay installed.

Expected results:
Should remove only those rpm-packages not needed in some other groups.

Additional info:
Also if trying to re-install some group, dnf behaves weirdly:

# dnf group list
Using metadata from Tue Mar  3 16:16:12 2015
Available environment groups:
   Fedora Server
   Fedora Cloud Server
...
Installed environment groups:
   Fedora Workstation
   LXDE Desktop
Installed groups:
   Administration Tools
   C Development Tools and Libraries
   Fedora Eclipse
   LibreOffice
Available groups:
   3D Printing
   Audio Production
...
#

# dnf group install "LXDE Desktop"
Using metadata from Tue Mar  3 16:16:12 2015
Warning: Group 'LXDE Desktop' does not exist.
Dependencies resolved.
Is this ok [y/N]: y
Complete!

It doesn't find group "LXDE Desktop"?!  It could of course tell, you have already installed group "LXDE Desktop".

And there could be "group reinstall" subcommand in dnf also just in these cases, but the "dnf group remove" command currently can break the OS totally.

See also:
http://forums.fedoraforum.org/showthread.php?t=303291

From /var/log/dnf.rpm.log I can see specific rpm-packages it installed and removed, if needed, but it is obvious "dnf group remove" just didn't look at all what other installed groups need.

Comment 1 Honza Silhan 2015-03-17 10:13:39 UTC
Thanks for the report, during removal of the group it should remove all mandatory packages from all groups installed.

Comment 2 Fedora End Of Life 2015-11-04 15:21:34 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2015-12-02 09:44:01 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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