Installing Eclipse features via the command line with the p2 director

I finally found the time to try out Paul Websters tip for installing Eclipse features from the command line and updating eclipse.ini. While I don’t have the out-of-memory problem I also download frequently Eclipse releases and need to install components into it.

Pauls tip make it easy, here is an example which will add EGit, Mylyn and EMF to your Eclipse instance.

eclipse/eclipse \
-application org.eclipse.equinox.p2.director \
-noSplash \
-repository \ \
-installIUs \,\,\,\

Just make sure the initial path is correct and once this is done, restart your Eclipse. I must say that is a cool feature of p2, which makes me like p2 much more. The manual installation process was really annoying.

I hope this helps. Thanks again to Paul!

Does anyone know if I can also de-install components with the director?

About Lars Vogel

Lars Vogel is the founder and CEO of the vogella GmbH and works as Eclipse and Android consultant, trainer and book author. He is a regular speaker at international conferences, He is the primary author of With more than one million visitors per month this website is one of the central sources for Java, Eclipse and Android programming information.
This entry was posted in Eclipse and tagged , . Bookmark the permalink.

6 Responses to Installing Eclipse features via the command line with the p2 director

  1. Martin Ellis says:

    /opt/eclipse/current/eclipse -application org.eclipse.equinox.p2.director -nosplash -help
    -uninstallIU | -uninstallIUs | -u
    Uninstalls the listed IU’s. Each entry in the list is in the form [ ‘/’ ].

  2. For an even better experience you may trye Pulse (from Genuitec/MyEclipse)

  3. Tomasz Zarna says:

    Some time ago I was looking for a way to “update” installed IUs, then I learned about the switch you asked about :

  4. admin says:

    Thanks Tomasz.

Comments are closed.