3

So I recently installed the kde packages, running the command apt install kde-full for installing the kde desktop environment, after test it a while I realize I didn't want it anymore so I remove the packages like this apt remove kde-full, but I notice that some packages and applications remains and weren't completely removed.

I am on Debian 8 distribution. I recently turned to the linux world so any help will be appreciated.

[Edit]

I also tried tasksel --list-task:

u desktop   Debian desktop environment
u gnome-desktop GNOME
u xfce-desktop  Xfce
u kde-desktop   KDE
u cinnamon-desktop  Cinnamon
u mate-desktop  MATE
u lxde-desktop  LXDE
u web-server    web server
u print-server  print server
u ssh-server    SSH server
i laptop    laptop

Some packges listing with synaptic-package-manager:

enter image description here

aptitude why kde-base-artwork output:

aptitude why kde-base-artwork
i   kdeartwork         Depends kscreensaver (>= 4:4.14.2-1)      
i A kscreensaver       Depends kde-workspace-bin                 
i A kde-workspace-bin  Depends kde-workspace-data (= 4:4.11.13-2)
i A kde-workspace-data Depends kde-base-artwork       
Daniel Pérez
  • 131
  • 1
  • 1
  • 5

1 Answers1

3

After removing kde-full,

apt autoremove

or

apt-get autoremove

(apt autoremove will be available in Debian 9)

should remove any packages that were installed automatically along with kde-full. Take care to review the list of packages that are about to be removed before confirming the removal.

Other packages may be marked as not automatically installed, e.g. kdeartwork in your case (for whatever reason). You need to remove those packages and re-run autoremove. To identify all the packages you need to remove, look for packages the automatic flag, or run aptitude why on packages that are automatically installed and look for packages without A in the output. After a few iterations you should manage to get rid of all the unwanted packages.

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
  • not showing packges for autoremove – Daniel Pérez May 31 '17 at 17:49
  • 1
    `kde-full` is ametapackage. It will not remove remaining packages that are part of that. `autoremove` is only for dependencies not needed anymore... –  May 31 '17 at 17:50
  • @nwildner after removing `kde-full`, the “dependencies” that it pulled in should no longer be needed any more (I just checked with another metapackage, in the metapackage section). – Stephen Kitt May 31 '17 at 19:04
  • 2
    @nwildner more explicitly, for example `kde-full` depends on `kde-plasma-desktop`, so installing `kde-full` installs `kde-plasma-desktop` and marks it as an automatic installation; removing `kde-full` should also remove `kde-plasma-desktop` (depending on the tool being used — apparently `apt` on its own won’t, but `aptitude` will), and if it doesn’t do so directly, `autoremove` *should* catch it (unless some other installed package depends on it or recommends it). – Stephen Kitt May 31 '17 at 19:06