This page has been nominated for deletion.
The given reason is: This might've been relevant some years ago as Gentoo transitioned to KDE Plasma 5, but as we are approaching Plasma 6 this information has been outdated and useless for a few years now. Redstrate (talk) 22:18, 26 May 2022 (UTC)
If you disagree with its deletion, do not remove this notice; discuss your objections on the associated discussion page.
This article describes the removal and clean up of KDE.
It is recommended to begin with a clean environment in order to minimize issues, especially when considering one of the following actions:
- Downgrading KDE (eg. from snapshots/live ebuilds to the Portage version).
- Moving from an old ebuild repository to a different one or to the official packages.
Uninstalling and removing KDE
Uninstall all packages remotely depending on KDE
A possible way to completely remove an old KDE installation is by explicitly uninstalling all plasma packages and software depending on kde-frameworks/plasma:
emerge --ask --depclean --verbose kde-plasma/plasma-meta
Note that this will not just remove KDE but also all other packages depending on it (unconditionally or through a USE flag dependency), such as e.g. plasma-pass[kde].
Deselecting ebuild repositories
If any old repositories are still defined, deselect them so that there are no conflicts with the KDE ebuilds.
Clean up Portage definitions
Look in /etc/portage for any KDE/Plasma specific settings in package.mask, package.unmask, package.keywords and package.accept_keywords. Clean up those definitions pertaining to KDE/Plasma packages.
Remove unneeded dependencies
After uninstalling KDE packages, ask Portage to uninstall any now unneeded dependencies:
emerge --ask --depclean
Clean up KDE remains
If the system uses the desktop/plasma profile, change to the desktop profile. Also check in /etc/portage/make.conf and other configurations files what the active USE flags are.
Remove the remaining KDE configuration files and app data in the following folders:
- ~/.kde - Configuration files and app data of KDE 3.
- ~/.kde4 - Configuration files and app data of KDE 4.
- /usr/kde/ - App data of KDE 3.
- /var/lib/kde - Configuration files of KDE 4.
- /var/lib/kdm - Configuration files of KDM.
- /var/log/kdm.log - KDM log file.
The following folders are shared folders. Only remove the KDE related files:
- ~/.config - Configuration files of KDE apps.
- ~/.local - App data of KDE apps.
- /etc/conf.d/xdm - XDM configuration file.