Is it possible to switch completely to KDE from GNOME?

I’d like to ask is it possible to switch entirely to KDE from Gnome in all aspects, in means of completely removing Gnome and installing KDE since I tried removing gnome and the system refused since gnome-shell is a protected package.

I want someone who tried such a thing and tell me about the experience and I have some concerns doing that… and my main concern if that step worked is about the Nvidia drivers having a hybrid Machine which requires Optimus drivers…does it work well in KDE or shall I just stick to Gnome with X11 for now?

Thanks in adavnce

You can use Fedora spins:
https://spins.fedoraproject.org/

Fedora spins of KDE desktop environment:
https://spins.fedoraproject.org/kde/

Also you can download various types of desktop environment
https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/37/Spins/x86_64/iso/

A little bit guidance here:

By the way, Fedora is using Wayland by default for their display server instead of X11. And you can change the server by logining out the Fedora then at the login screen, select the “gear” icon and select GNOME on Xorg. Once login is completed the X11 windowing system will be in use, as can be seen by returning to Settings > About. This change will persist unless changed back at the login screen.

Or you can use this method also:

Yes, here’s a script that replaces GNOME with KDE:

tee migrate-gnome-kde.sh << EOF > /dev/null
#!/usr/bin/bash
sudo dnf shell -y --setopt protected_packages= << EOI
swap fedora-release-workstation fedora-release-kde
swap fedora-release-identity-workstation fedora-release-identity-kde
run
remove @gnome-desktop
run
remove *gnome* *gtk*
run
install @kde-desktop-environment
run
EOI
sudo systemctl restart sddm.service
EOF

You can run it from a text terminal Alt+Ctrl+F3:

sh migrate-gnome-kde.sh

Otherwise you can remove protected packages like this:

sudo dnf remove gnome-shell --setopt protected_packages=
8 Likes

That was the answer I was looking for…Thank you so much. However, I still have the concern of running KDE wirh my optimus drivers. Is it better than gnome or as easy? if you had any experience in that topic I’d appreciate you explaining the situation for me.

In KDE (just as in GNOME) the default is Wayland, but there is a choice at the login prompt to use X11 instead.
Wayland is not compatible with some of the proprietary Nvidia drivers (I switched to AMD months ago, so I no longer keep detailed track of Nvidia issues, but I don’t think it has changed much).
I don’t know about optimus. But I still expect any problems would be in Wayland, not in KDE.

If you are worried about KDE working or you are worried you won’t like it, you could install and try KDE before removing GNOME (so you can use either by choice at the login screen).

I expect almost any change in Desktop Environment will initially feel worse, because it is not what you are used to. But in my opinion, KDE is much better than GNOME.

Just run ‘dnf install plasma-desktop’ and switch with gdm. There are a few desktops you can see with ‘dnf list *desktop’. Gnome is the default setup of Fedora like Red Hat and CentOS, you might have to remove this and that …

This solution was perfect for me. Wanted to replace Gnome by KDE on my laptop with Fedora 40. Just forgot to run the script outside my current Gnome session. While the script was running, the laptop rebooted to a CLI screen where I had to run the script again to install the new DE. After the switch, I lost my Brave Browser !?

Two days before I tried to install KDE while keeping the Gnome DE. All things was really slow (both KDE and Gnome sessions). But with your script to replace Gnome all is good and fast.

I suppose that with the first commands of your script, a future release upgrade (to Fedora 41) will use the “spin” release and upgrade with KDE and not Gnome DE ?

Each upgrade should upgrade the installed packages and not revert to some past configuration. This would mean that if your system is stable, has done the full dnf upgrade --refresh as is always prompted when updating with dnf system-upgrade, and has the kde DE already working, then the upgrade should not change those conditions.

Note that the ‘spin’ installed/active has nothing to do with what happens when doing an upgrade. The upgrade works at the package level only.

1 Like

Thank you for taking the time to clarify all this. Much appreciated.