From Gentoo Wiki
Jump to:navigation Jump to:search
This page contains changes which are not marked for translation.
Other languages:
Deutsch • ‎English • ‎русский • ‎中文(中国大陆)‎ • ‎한국어

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:

root #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:

root #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.