Revert an Eclipse Update Installation

I’ve been running into an issue with an Eclipse plugin update: I updated a plugin, and then broke a critical functionality. What I usually do is to uninstall the plugin (see “Uninstalling Eclipse Plugins“), and then install it again. However, in this case the uninstall ended with an error too :-(.

Uninstall failed

Uninstall failed

What now? How can I revert that plugin installation/update?

What I just have learned is that it is possible to revert installations like an undo ๐Ÿ™‚

๐Ÿ’ก Important point: In my view, it is not the fault of the GNU ARM Eclipse plugin used in this example. The problem is that there is a patch in my Eclipse version depending on an other thing which breaks things when I get that new GNU ARM Eclipse plugin. But I just have run into this issue, and want to document to how such a problem can be solved.

Go to the Help menu and select the ‘Installation Details’:

๐Ÿ’ก I’m using Eclipse Luna, in this particular case the Freescale Kinetis Design Studio

Help Menu With Installation Details

Help Menu With Installation Details

Go to the ‘Installation History’ tab and use ‘Revert’ to go back to a previous time/installation point. So I can select a point/plugin configuration back in and revert to that point:

Installation History

Installation History

There is only one catch: the plugins of that previous configuration must be accessible, otherwise I get an error about ‘Revert configuration has encountered a problem’:

Revert Configuration has encountered a problem

Revert Configuration has encountered a problem

In my case it complains with a plugin not found, because it came pre-installed with that Eclipse distribution. Luckily, most plugins have previous versions available on the net, e.g. I found the one for my case on SourceForge (https://sourceforge.net/projects/gnuarmeclipse/files/Current%20Releases/2.x/):

Releases on SourceForge

Releases on SourceForge

So that Eclipse can find it, I have added the archive to the available Software Update Sites (menu Window > Preferences > Install/Update > Available Update Sites):

Added Additional Update Archive

Added Additional Update Archive

Because updates depend on other updates, it might be even necessary to have a row of updates available for a successful revert:

Added Additional Update Archive

Added Additional Update Archive

Multiple Update Sites

Multiple Update Sites

Summary

It is possible to revert installation of Eclipse plugins to an earlier state. This requires that the previous plugins are still available somewhere. I recommend to have them downloaded and stored locally. If your plugin provider does not host earlier versions on a server, then you can download the plugins from an Eclipse update site (see “Replicating an Eclipse Update Site for Offline Usage“). But you need to do this as long as this update site is available, or when you are making the update. If that update site (or the file server) goes away, you cannot do a revert any more.

๐Ÿ’ก another thing I do often before doing an update in Eclipse: I make a copy of the layout/installation folder. If something goes wrong, I have a backup ๐Ÿ™‚

Happy Reverting ๐Ÿ™‚

PS: Thank you Liviu for the great plugins you provide, and that you put all versions of your plugins on SourceForge. That saved my day!

What do you think?

This site uses Akismet to reduce spam. Learn how your comment data is processed.