# Install nuget with Homebrew, dnf, Nix, pacman, scoop, winget

Package manager for Microsoft development platform including .NET. Version 7.6.0 via Homebrew; verified 2026-05-14.

## Install

```sh
sudo av install brew:nuget
```

## Agent safety answer

nuget manages .NET packages and registry publishing.

- **Credential access:** Reads NuGet API keys, package source credentials, and config files.
- **Remote mutation:** Can push packages and change package-source state.
- **Publish/artifact risk:** Can publish .NET packages and symbols.
- **Recommended control:** Gate push, delete, source credential, and API-key commands.
- **Agent-use guidance:** Allow restore/list; require approval for package publication and credential changes.

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install nuget
```

  Evidence: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install nuget
```

  Evidence: Fedora Rawhide package metadata: nuget from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#nuget
```

  Evidence: nixpkgs package indexes: pkgs/by-name/nu/nuget/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S nuget
```

  Evidence: Arch Linux sync databases: nuget from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/nuget
```

  Evidence: Scoop official bucket manifest trees: bucket/nuget.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Microsoft.NuGet -e
```

  Evidence: Windows Package Manager source index: Microsoft.NuGet from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:nuget
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/nuget>
- **Version:** 7.6.0
- **Source summary:** Package manager for Microsoft development platform including .NET
- **Homepage:** <https://www.nuget.org/>
- **Repository:** <https://github.com/NuGet/NuGet.Client>
- **Upstream docs:** <https://learn.microsoft.com/en-us/nuget>
- **License:** MIT
- **Source archive:** <https://dist.nuget.org/win-x86-commandline/v7.6.0/nuget.exe>
- **Last updated:** 2026-05-14T02:59:39Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- nuget (cli)
- nuget (alias)

## Dependencies

- mono

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 7.6.0
- Package-manager updated: 2026-05-14
- Local data: ok
- Upstream repository: https://www.nuget.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

NuGet is the canonical package manager for the Microsoft .NET ecosystem: a client toolchain, package format, public gallery, and set of repository conventions for creating, publishing, restoring, and consuming .NET libraries.

### Project history

The project began in 2010 as NuPack in the ASP.NET / Microsoft web tooling orbit. Phil Haack's October 6, 2010 announcement described it as an open source, developer-focused package manager for simplifying third-party library use in .NET applications, and said the Outercurve Foundation had accepted the project into the ASP.NET Open Source Gallery.

The NuPack name was quickly changed. Haack's October 21, 2010 post opened public voting on replacement names, and his October 29, 2010 follow-up announced NuGet as the winner. That rename is part of NuGet lore because it tied the package manager's identity to community input before the project settled into the .NET platform.

### Adoption history

NuGet solved a very visible .NET pain point: finding libraries, adding assembly references, putting files in predictable project locations, applying config transforms, and updating dependencies. A November 2011 MSDN Magazine article presented NuGet as the rescue path from manual library download and reference management, and noted that ASP.NET MVC 3 already included it.

NuGet's adoption is structural rather than just CLI popularity. Microsoft Learn describes NuGet packages as .nupkg zip files carrying compiled code, related files, and manifest metadata; package authors publish them to public or private hosts, while consumers add them to projects and call the package functionality from application code. NuGet.org is the central public repository for that workflow.

Homebrew packages the standalone `nuget` command for macOS/Linux users outside Visual Studio. The Homebrew formula showed stable version 7.6.0 and 26,865 installs over the 365-day analytics window visible on July 1, 2026.

### How it is used

Package nerds use NuGet in three overlapping ways: `nuget.exe` for pack/push/restore workflows, Visual Studio's package manager UI and console for project work, and modern SDK/MSBuild restore paths for repeatable CI. The important artifact is the `.nupkg`, whose ID, semantic version, dependencies, target framework assets, metadata, and source repository fields become part of the .NET dependency graph.

Practical usage is not only installing public packages. Organizations run private NuGet feeds for internal libraries, mirror/cache packages for build reproducibility, pin or float versions through project files and lock files, and publish prerelease packages from CI before promoting stable versions to nuget.org or an internal feed.

### Why package nerds care

NuGet is infrastructure for the .NET supply chain. It defines the default package unit, public distribution hub, and restore semantics for a large share of .NET application builds, which makes it comparable in ecosystem role to npm for JavaScript or PyPI/pip for Python.

### Timeline

- 2010-10-06: NuPack/NuGet announced as an open source .NET package manager accepted by the Outercurve Foundation into the ASP.NET Open Source Gallery.
- 2010-10-21: NuPack rename vote opened.
- 2010-10-29: NuGet announced as the selected name.
- 2011-11: MSDN Magazine documented NuGet's package-install, update, and PowerShell-console workflows for Visual Studio users.

### Related projects

- NuGet Gallery
- NuGet.Client
- NuGet/Home
- .NET SDK restore
- MSBuild

### Sources

- <https://formulae.brew.sh/formula/nuget>
- <https://haacked.com/archive/2010/10/06/introducing-nupack-package-manager.aspx/>
- <https://haacked.com/archive/2010/10/21/renaming-nupack.aspx/>
- <https://haacked.com/archive/2010/10/29/nupack-is-now-nuget.aspx/>
- <https://learn.microsoft.com/en-us/archive/msdn-magazine/2011/november/nuget-manage-project-libraries-with-nuget>
- <https://learn.microsoft.com/en-us/nuget/what-is-nuget>
- <https://www.nuget.org/>


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.nuget/NuGet/NuGet.Config, ~/.config/NuGet/NuGet.Config

## Credential files

- Unix: ~/.nuget/NuGet/NuGet.Config, ~/.config/NuGet/NuGet.Config
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nuget
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - nuget: normalized package name match | nixpkgs package indexes: pkgs/by-name/nu/nuget/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - nuget - 2.8.7-24.fc44: normalized package name match | Fedora Rawhide package metadata: nuget from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Package manager for .Net/Mono development platform | http://nuget.org/
- dnf - nuget-devel - 2.8.7-24.fc44: normalized package name match | Fedora Rawhide package metadata: nuget-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for nuget | http://nuget.org/
- pacman - nuget - 6.11.1-1: normalized package name match | Arch Linux sync databases: nuget from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Package manager for .NET. | https://www.nuget.org
- Scoop - main/nuget: normalized package name match | Scoop official bucket manifest trees: bucket/nuget.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Microsoft.NuGet: normalized package name match | Windows Package Manager source index: Microsoft.NuGet from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [mono](https://www.automicvault.com/pkg/brew/mono/) - Runtime dependency declared by Homebrew.
- [composer](https://www.automicvault.com/pkg/brew/composer/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager, packages.
- [akku](https://www.automicvault.com/pkg/brew/akku/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [bower](https://www.automicvault.com/pkg/brew/bower/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [cabal-install](https://www.automicvault.com/pkg/brew/cabal-install/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [clib](https://www.automicvault.com/pkg/brew/clib/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [conan](https://www.automicvault.com/pkg/brew/conan/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [conda-lock](https://www.automicvault.com/pkg/brew/conda-lock/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [corepack](https://www.automicvault.com/pkg/brew/corepack/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [micromamba](https://www.automicvault.com/pkg/brew/micromamba/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, management, manager.
- [mint](https://www.automicvault.com/pkg/brew/mint/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, management, manager.

## Combined YAML source

View the package source record on GitHub. [combined/nuget.yml](https://github.com/automic-vault/db/blob/main/combined/nuget.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
