| title | Search for packages in upstream sources |
|---|---|
| description | How to search for packages in upstream sources |
| ms.service | azure-devops-artifacts |
| ms.topic | how-to |
| ms.date | 09/29/2022 |
| monikerRange | >= azure-devops-2022 |
[!INCLUDE version-gt-eq-2022]
Using upstream sources enable developers to consume packages from different feeds and public registries. This tutorial will walk you through how to enable upstream sources in your feed and search for packages in upstreams.
-
Navigate to your project, and then select Artifacts.
-
Select Upstream Sources.
-
Select Add Upstream.
-
Select Public source, and then select the Public source. (Example NuGet gallery (https://api.nuget.org/v3/index.json))
-
Select Add when you're done.
:::image type="content" source="../media/enable-upstream.png" alt-text="A screenshot showing how to add the NuGet upstream.":::
-
Navigate to your project, and then select Artifacts.
-
Select your feed from the dropdown menu.
-
Select Search Upstream Sources at the top right of your screen.
:::image type="content" source="../media/search-upstream-sources.png" alt-text="A screenshot showing the search upstream sources button.":::
-
Select the Package type and type your Package Name. (The package name is case sensitive and must be an exact match).
-
Select Search when you're done.
:::image type="content" source="../media/search-upstreams.png" alt-text="A screenshot showing how to search for a package in upstream sources.":::
-
A list of package versions will be displayed as follows:
:::image type="content" source="../media/upstream-packages.png" alt-text="A screenshot showing package versions from upstream.":::
Note
Searching for packages in upstream sources from your feed is only supported in Azure DevOps services.
-
To save a package, select the ellipsis button and then select Save to feed.
:::image type="content" source="../media/save-from-upstream.png" alt-text="A screenshot showing how to save a package from upstream source.":::
-
Select Save to save the package to your feed.
:::image type="content" source="../media/save-confirmation.png" alt-text="A screenshot showing the save confirmation message.":::
-
The saved versions will have the
In this feedtag.:::image type="content" source="../media/downloaded-versions-from-upstream.png" alt-text="A screenshot showing the downloaded versions.":::
Note
Saving package versions to your feed from the search upstreams result list is only supported for NuGet, Npm, and Universal Packages.