Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Ubuntu 12.04. I found my root directory full so thought to free up some space. In this regard I opt for removing KILE. But the base package KILE is only 4.4 MB.

How can I remove its related libraries (nearly 300MB) which were installed with it?

share|improve this question


sudo apt-get remove --purge kile


sudo apt-get autoremove --purge

This should remove any leftover KDE dependencies (as long as there is no other KDE program installed, that depends on them)

share|improve this answer
with first command it removes only 4.4 mb space kile package.. and then show 0 to remove – suruchi Sep 27 '12 at 8:59

You can list the kde-depencies with dpkg -l | grep kde. Output is something like this:

rc  kdebase-bin              4:4.6.5-0ubuntu1    core binaries for the KDE base applications
rc  kdebase-workspace-bin    4:4.6.5-0ubuntu1    core binaries for the KDE Plasma Workspace

Now you can manually remove all unwanted kde packages, but be careful if there are packages that not belongs to kde. If you use other kde applications, then those applications need kde-depencies.

See: What do the various dpkg flags like 'ii' 'rc' mean?

share|improve this answer

To remove KDE libraries, use command below. Open terminal (Ctrl+Alt+T) then type:

sudo apt-get remove kubuntu-desktop --purge  
sudo apt-get remove kde-base --purge

Then restart your computer. The KDE libraries will be removed.

share|improve this answer
Can you explain what those commands do? – Mateo Oct 1 '12 at 7:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.