Fedora 29 – Safely Uninstalling GNOME Desktop Environment

dnffedoragnome

This question is similar to What is secure to remove from GNOME Desktop => GNOME (but not a duplicate).

I want to remove the GNOME desktop environment. Running the proposed command in this question does not work on Fedora 29.

$ sudo dnf group remove gnome-desktop-environment
Warning: Group 'gnome-desktop-environment' is not installed.
Error: No groups marked for removal.

I noticed there is a group called gnome-desktop instead.

However, sudo dnf group remove gnome-desktop lists hundreds (all?) of installed packages for removal. It includes packages that are not at all related to GNOME (such as lib*, plasma-*, texlive-*, …). I fear that running this command will force me to do a full re-install of the system.

Is there a safe way to remove GNOME's desktop environment from Fedora 29 that leaves me with a functioning KDE install?

I just want to reclaim some disk space (not all of it..)

Best Answer

You can actually remove and install packages in the same operation, with dnf swap. And since the option takes groups as well as just single package names, you can switch one for another very simply:

dnf swap @gnome-desktop @kde-desktop
Related Question