I installed kde by dnf install @kde-desktop hoping to get rid of this issue following this reply.
However, neither the issue was resolved nor do I like kde-desktop.
I tried to remove it by undoing the transaction ID like - sudo dnf history undo
But then it says
No package @kde-desktop installed.
Error: no package matched
How should I cleanly remove kde without affecting the dependencies that gnome relies on too?
I think I should not do dnf remove @kde-desktop because that will also remove a hell lot of other applications like Xorg, etc which the gnome-de depends on too.
If I do dnf remove kde-* qt-* plasma-* then I fear that it won’t be a clean uninstall and will leave me unable to undo the transaction by which I installed the kde-desktop.
Error message says kde-desktop group is not installed. Can you mark it as installed with sudo dnf group mark install kde-desktop and try sudo dnf history undo again?
I did as told by @ersen.
Here is the trimmed output of sudo dnf history undo 31 -
Last metadata expiration check: 0:01:27 ago on Sun 05 Apr 2020 11:56:03 PM IST.
Undoing transaction 31, from Sat 04 Apr 2020 11:17:56 PM IST
Install NetworkManager-l2tp-1.8.2-1.fc32.x86_64 @updates-testing
Install appstream-0.12.10-1.fc32.x86_64 @updates-testing
…
No package breeze-icon-theme-5.67.0-1.fc32.noarch installed.
No package @kde-desktop installed.
No package kf5-attica-5.67.0-1.fc32.x86_64 installed.
…
No package kf5-threadweaver-5.67.0-1.fc32.x86_64 installed.
No package qqc2-desktop-style-5.67.0-1.fc32.x86_64 installed.
Error: no package matched
What is the transaction 32? And if you update a package installed at 31 later in the 33, maybe breeze-icon-theme or others in the error message, history undo fails because it tries to rollback the package with the previous version.
I did dnf remove @kde-desktop. It worked like a charm. Cleanly removes the apps and stuffs belonging to KDE while keeping Gnome running uninterrupted. A later reboot also shows no problem in Gnome (Wayland). However, I had to manually remove all the config files KDE apps created in ~/.config , ~ and ~/.local dirs.