28

I'm working on Eclipse Indigo on Ubuntu 12.04.

I'm trying to completely uninstall Eclipse (with Synaptic Package Manager + Mark for complete removal), but when I reinstall it, I clearly see that it has kept all parameters, and history, which is what I'm trying to get rid of. I also tried the following.

sudo apt-get purge eclipse
rm -r ~/.eclipse/

As suggested here, no luck either.

8 Answers8

48

Run following commands:

sudo apt-get autoremove eclipse*
rm -r ~/.eclipse/

This will uninstall the dependencies and related packages that were installed along with eclipse. This should do the trick.

sudo snap remove eclipse
Bhavin Doshi
  • 2,466
7

You were almost done. Add an asterisk (*) at the end of eclipse word.

sudo apt-get autoremove eclipse*
rm -r ~/.eclipse/

Today I have encountered the same problem and searched for a solution. I have seen this question. I have tried the same steps but failed. Then a friend of mine used those commands above.

It removed all about eclipse.

2

I would look in the /etc, /usr, and /var directories for any files that may be related to Eclipse. Using the Synaptic or other package managers will only remove files that were part of the installation, not any of the settings files that Eclipse may have made when used.

Mir Rahed Uddin
  • 619
  • 1
  • 8
  • 20
douggro
  • 2,537
  • 1
    Depends. If you have manually installed it, this is how you have to do it. But if it is installed through apt-get, this is a bad idea. – Anders Nov 06 '14 at 03:35
2

I tried many of the suggested solutions and kept coming up with similar results. Eventually fired up software centre and found that it was registering Elipse as installed. So I installed it through software centre and the process overwrote what was installed already ( probably because I installed via command line).

Then fired up synaptics package manager, did a search for eclipse while sorting by "installed version" column. Selected all dependent packages and marked them for complete removal. That did the trick.

2

sudo apt-get autoremove eclipse --purge

Sagar Panchal
  • 758
  • 4
  • 20
1

First remove eclipse:

CTRL+ALT+T, opens up the terminal. Type in sudo apt-get autoremove eclipse.

Now, type in cd / which will put you in the "File System" directory. Next you type gksu nautilus and it will ask you for your password. When you type it in, the File System folder (with all privileges) will pop out. From there you click the search button, type in eclipse, wait for everything to be found and simply delete everything it found.

Then you can go to Ubuntu Software Center and install fresh version of eclipse and add your new packages from synaptic.

BuZZ-dEE
  • 14,223
spaceman
  • 11
  • 1
  • 3
1

I just ran into the same problem today, and managed to solve it with :

sudo apt-get purge eclipse*
rm -r ~/.eclipse/

(Just add a '*' after eclipse) Eclipse is in fact installed as a bunch of different packages, which names all starts with 'eclipse' ; so this should indeed remove all your previous configuration

Venkatesh
  • 2,331
  • 4
  • 27
  • 52
Nielk
  • 111
  • 4
-1

Using synaptic package manager download "gtkorphan",it will remove your config and a lot of other orphaned packages.After download look in your dash home for Remove Orphaned Packages.I use it religiously to clean up my 12.04 system as well.