Complete, Concrete, Concise

Practical information without the bloat

Ubuntu 12.04 – How to Completely Uninstall / Remove Lxde

These instructions are for Ubuntu 12.04 running the Unity desktop on which the lxde window manager was installed using either the Ubuntu Software Center or sudo apt-get on the command line.

The instructions may be the same for other versions of Ubuntu, but no guarantee is made.

When the Lxde window manager is installed in Ubuntu 12.04, it installs several packages and libraries it requires as well as some optional packages. Not all these packages and libraries are uninstalled when you uninstall Lxde. Several packages (like leafpad and gcalculator) do not get uninstalled.

If you are not sure if you installed lxde or lxde-core, I recommend following the uninstallation instructions on this page.

Even if you decide to opt for the quick uninstall method, at least you will know which flavour of Lxde was installed.

Of course, it doesn’t matter much. If you uninstall lxde-core when you had installed lxde, then you end up leaving some files behind (but still fewer than if you had uninstalled the normal way). If you uninstall lxde when you had installed lxde-core, then everything will be removed – it is safe to remove / uninstall files that were never installed because they are simply ignored.

Quick Uninstall

This is not recommended because it will remove all packages normally installed with Lxde. This may include packages you previously installed (like leafpad or gcalculator) or packages that were installed a necessary dependencies for other programs.

Note: this uninstall command assumes Lxde was installed on a fresh Ubuntu 12.04.

1) Open a terminal (instructions can be found here).

2) Enter the following command (it is very long and a single line):

sudo apt-get purge --auto-remove   arj galculator giblib1 gpicview leafpad libfm-data libfm-gtk-data libfm-gtk1 libfm1 libglade2-0 libid3tag0 libimlib2 libjpeg-progs libjpeg-turbo-progs  libmenu-cache1 libobrender27 libobt0 librpm2 librpmbuild2 librpmio2 librpmsign0  libxmmsclient-glib1 libxmmsclient6 lxappearance lxde lxde-common lxde-core  lxde-icon-theme lxinput lxmenu-data lxmusic lxpanel lxrandr lxsession  lxsession-edit lxshortcut lxterminal menu menu-xdg obconf openbox openbox-themes  p7zip-full pcmanfm rpm rpm-common rpm2cpio scrot xarchiver xmms2-core  xmms2-plugin-alsa xmms2-plugin-id3v2 xmms2-plugin-mad xmms2-plugin-vorbis  xscreensaver xscreensaver-data

It is easiest to copy the line and paste it into the terminal (right-click on the terminal and select Paste from the popup menu).

Preferred Uninstall

The better way to uninstall it is to follow the directions on this page.

This will show you on how to uninstall only the packages that were installed when Lxde was installed. The instructions are generic and work for any installed package.

It involves:

  1. identifying which packages were installed and
  2. creating a command to uninstall only those packages

It leaves intact any packages you may have installed (like leafpad or gcalculator) or that were installed as necessary dependencies for other programs instead of blindly assuming that they were installed along with Lxde.

'
%d bloggers like this: