Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Uninstalling features in p2 does not uninstall plugins
Uninstalling features in p2 does not uninstall plugins [message #721603] Fri, 02 September 2011 08:42 Go to next message
Eclipse UserFriend
Originally posted by:

We have an RCP product with some standard functionality which gets
always installed (All I'm describing here happens under Windows 7
systems). After this, we use the p2 commands to optionally install an
additional feature, e.g. like so:

app.exe -noSplash -application org.eclipse.equinox.p2.director
-installIU somefeature.feature.group -repository
file://C:\Users\BlaBlub\something

where app.exe is the name of the RCP program and somefeature is one
feature that becomes installed from the repository described by
file://C:\Users\BlaBlub\something.

This seems to work as intended, i.e. the feature *and* the referenced
plugins become installed in the p2 repo.

Now we want to allow the user to uninstall this optional feature. We do
so via the command:

app.exe -noSplash -application org.eclipse.equinox.p2.director
-uninstallIU somefeature.feature.group

This gives a 0 return (success) and we notice that the *feature* is
physically removed from the p2 repo. But the referenced *plugins* are
still contained in the p2 repo and they are still active in the RCP
product.

How can we ensure that both the feature *and* its *plugins* are
successfully removed?

Thanks & Greetings from Bremen,

- Daniel Krügler
Re: Uninstalling features in p2 does not uninstall plugins [message #723384 is a reply to message #721603] Thu, 08 September 2011 12:48 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
My guess: you need to pass "-profileProperties org.eclipse.update.install.features=true' to the p2 director.

Brian.
Re: Uninstalling features in p2 does not uninstall plugins [message #724483 is a reply to message #723384] Mon, 12 September 2011 12:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by:

On 2011-09-08 14:48, Brian de Alwis wrote:
> My guess: you need to pass "-profileProperties
> org.eclipse.update.install.features=true' to the p2 director.

Thanks Brian for your input. We tried to follow your advice, but
unfortunately this did not change anything: The feature is uninstalled,
but all the plugins that had been installed with this feature, still
remain in the repository and are not removed.

The problem is even worse: When starting the RCP application after the
uninstall it seems as if the previous plugins where at least not active
(E.g. the menu contributions are not provided). But once you open the
default Eclipse about dialog (integrated in our RCP app) and open the
table of the contained plugins, we can observe the following:

1) The table presents us the seemingly uninstalled plugins.
2) *After* leaving the About dialog and testing the menu contributions
again, those of the uninstalled plugins are again there.

I would like to emphasize that non of the *remaining* plugins is
dependent on the plugins installed by the feature, so we can exclude
that the repository kept them, because they are still required by some
other plugin.

Let me refine, that we provided your suggested pass of

"-profileProperties org.eclipse.update.install.features=true"

to both the invocation of -installIU and that of -uninstallIU.

Any further suggestions are highly appreciated.

Thanks & Greetings from Bremen,

Daniel Krügler
Re: Uninstalling features in p2 does not uninstall plugins [message #724544 is a reply to message #724483] Mon, 12 September 2011 15:05 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Ah, this is bringing back deja vu -- I think you need to run the p2 garbage collector. See the following links:

http://www.eclipse.org/forums/index.php?t=msg&goto=543500
http://dev.eclipse.org/mhonarc/lists/p2-dev/msg00905.html
Re: Uninstalling features in p2 does not uninstall plugins [message #727376 is a reply to message #724544] Wed, 21 September 2011 06:15 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2011-09-12 17:05, Brian de Alwis wrote:
> Ah, this is bringing back deja vu -- I think you need to run the p2
> garbage collector. See the following links:
>
> http://www.eclipse.org/forums/index.php?t=msg&goto=543500
> http://dev.eclipse.org/mhonarc/lists/p2-dev/msg00905.html

Thanks Brian, this was essentially the solution of our problem!
[Apologies for my late feedback, but I just returned from a journey and
my colleague mentioned to me that your final tip solved our problems]

Thanks & Greetings from Bremen,

Daniel Krügler
Previous Topic:created repository is unrecheable
Next Topic:Use a version in installui in a headless installation
Goto Forum:
  


Current Time: Thu Dec 26 15:00:48 GMT 2024

Powered by FUDForum. Page generated in 0.06927 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top