Debian – Remove components from standard installation of KDE Plasma on Debian 10

debiankdeplasma5

I recently Installed Debian 10 with KDE Plasma desktop environment. I chose this desktop environment because it is modern and looks great. The customization is also over the top making it the best flavor out there for me.

I noticed that it comes with a lot of bloatware which I can't seem to uninstall. The reason for this is that removing those packages will also remove other important packages.

I will put a list here with all the packages I am willing to remove, and what other packages will automatically be removed with them.

  • Okular(document viewer) – kde-standard, task-kde-desktop
  • Gwenview(image viewer) – kde-standard, task-kde-desktop
  • Kaddressbook – kde-standard, task-kde-desktop
  • Akregator(feed reader) – kde-standard, task-kde-desktop
  • Kopete(messenger) – kde-standard, task-kde-desktop
  • kmail – kde-standard, task-kde-desktop
  • konqueror – kde-baseapps kde-plasma-desktop kde-standard konq-plugins task-kde-desktop
  • juk(music player) – kde-standard, task-kde-desktop
  • Dragon player(video player) – kde-standard, task-kde-desktop

The list goes on like this. I do not want to write all of them down, you probably get the idea.

If possible I want to remove all programs, but of course keep using KDE. Is there a way to remove these programs safely? And if not, is there a way to hide them from my program menu? I do not need any of them and it is bothering me a lot that they are there.

Best Answer

Installing the kde-standard package is not what you would like to install in the first place as a user who wants to have fine grained control over the packages on your system. Given the large list of things that you do not want, I would recommend removing kde-standard and install plasma-kde-desktop. The latter is like a minimal kde.

However, we can also impose to the package manager that we installed actually all of the kde-standard dependencies and recommends manually and not as a dependency. For this high-level tasks it is always more comfortable to use aptitude as your interface to the package manager (apt-get install aptitude - https://wiki.debian.org/Aptitude ). Then the magic is done with:

aptitude  unmarkauto "?reverse-depends(kde-standard) | ?reverse-recommends(kde-standard) 

Note: Before running such commands I always recommend to run aptitutde in a first dry-run pass with the -s flag, that simulates the to be performed actions.

After this, you can remove the kde-standard package (aptitude remove kde-standard), and then proceed to removing the undesired packages. Depending on the way you installed kde, aptitude may recommend to remove also the task-kde-desktop, which can be safely acknowledged.

Related Question