Search code examples
eclipsep2

Eclipse p2 director application without updates


I'm installing artefacts through the p2 director application from a command line and all of their repositories will get added to the Software Updates. Is there a way not the get the repositories added, or remove/disable them afterwards?


Solution

  • The p2 director stores the locations of the repositories in the two files

    • org.eclipse.equinox.p2.artifact.repository.prefs
    • org.eclipse.equinox.p2.metadata.repository.prefs

    in each of the following two directories:

    • p2/org.eclipse.equinox.p2.engine/.settings and
    • p2/org.eclipse.equinox.p2.engine/profileRegistry/<profileName>.profile/.data/.settings

    Restoring these files might do the trick.

    Note, adding the repositories (alias software/update sites) is not a side-effect of using the p2 director, but explicit specified via the touchpoint action addRepository in the metadata repository (content.xml/content.jar) as part of the installed feature.