Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mirror the entire official NuGet repository

Tags:

nuget

mirror

Setting up a build server in an air gapped environment (no internet connection).

There are tools for mirroring but I'm wondering if there are any licensing issues mirroring the entire NuGet repository (https://api.nuget.org).

Also, does anyone know the size of the entire repo?

like image 761
Thomsen Avatar asked Feb 19 '18 15:02

Thomsen


People also ask

What is the default NuGet URL?

The location of the service index for nuget.org is https://api.nuget.org/v3/index.json .

What is NuGet repo?

What is NuGet? NuGet is the package manager for . NET. The NuGet client tools provide the ability to produce and consume packages. The NuGet Gallery is the central package repository used by all package authors and consumers.

What is NuGet and ProGet?

Developers describe NuGet as "The package manager for . NET". A free and open-source package manager designed for the Microsoft development platform. It is also distributed as a Visual Studio extension. On the other hand, ProGet is detailed as "A Package management system, Package your Applications and Components".


1 Answers

I can't speak to the legality of mirroring the NuGet repository.

I used NuGet.CatalogReader to get information on every package in the repository. I then made a HEAD request for the .nupkg URL to determine the Content-Length. I summed the size of each package and came up with ~2.36 TB. This should give you a good ballpark figure.

like image 69
robnasby Avatar answered Sep 27 '22 21:09

robnasby