WindowsmacOSLinux

Where Is the NuGet Global Packages Folder?

NuGet ~/.nuget/packages global cache on every OS plus NuGet.config fallback folders.

Last updated

NuGet caches every restored package version under .nuget/packages in your home folder on every OS identically. Restores go offline when the version already sits there.

The locals command reports all cache locations including http caches and temp. Clearing the global folder is safe; the next restore re downloads.

Where NuGet stores this, by platform

Windows
%USERPROFILE%\.nuget\packages

Per package id plus version subfolders with .nupkg files. NuGet.config files can add fallback folders beside it.

macOS
~/.nuget/packages

Same layout shared by dotnet CLI, Visual Studio for Mac era tooling and Rider.

Linux
~/.nuget/packages

Same layout. Container builds often mount this as a cache volume between runs.

Frequently asked questions

How do I clear the NuGet cache?

Run the locals all clear command. It wipes global packages plus http caches in one pass.

Why does restore ignore my updated package?

The global folder still holds the old version under the same number. Bump the version or clear that package id folder.

Notice an outdated path? Let us know.