Skip to content

Can I move a nuget package to a new repository? #26090

Answered by jcansdale
derekssmith asked this question in Actions
Discussion options

You must be logged in to vote

Hi @derekssmith,

derekssmith:

How can I move this package from the archived repository to the new repository, so I can continue to publish it from the new location?

Can you try the following:

  1. Download all versions of your .nupkg
  2. Make the original repository private
  3. Delete all package versions
  4. dotnet tool install update gpr -g
  5. gpr push *.nupkg --repository <OWNER/NEW_REPO> -k <PAT with repo, read:packages and write:packages scopes>

You can now publish new packages to the new OWNER/NEW_REPO repository. If you don’t need to keep your old packages, you can skip steps 1, 4 and 5.

I hope that helps!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packages Host your dependencies, libraries, and production-ready code, right from your repository Product Feedback
3 participants