# Installer nuget avec Homebrew, dnf, Nix, pacman, scoop, winget

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de nuget pour les workflows d'agents IA.

## installation

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

## Réponse sur la sécurité des agents

nuget manages .NET packages and registry publishing.

- **Accès aux identifiants:** Reads NuGet API keys, package source credentials, and config files.
- **Modification distante:** Can push packages and change package-source state.
- **Risque de publication ou d'artéfact:** Can publish .NET packages and symbols.
- **Contrôle recommandé:** Gate push, delete, source credential, and API-key commands.
- **Conseils d'utilisation par les agents:** Allow restore/list; require approval for package publication and credential changes.

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install nuget
```

  Preuve: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install nuget
```

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

- Nix (92%):

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

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

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

## Faits du paquet

- **Clé du paquet:** brew:nuget
- **Gestionnaire de paquets:** Homebrew
- **Version:** 7.6.0
- **Résumé source:** Package manager for Microsoft development platform including .NET
- **Page d'accueil:** <https://www.nuget.org/>
- **Dernière mise à jour:** 2026-05-14T02:59:39Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- nuget (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 7.6.0
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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/>


## Notes de sécurité

infrastructure mutation or orchestration signal.

- **Risque Geiger:** orange / moyen
- 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
## Autres enregistrements de gestionnaires de paquets

- 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-25.fc45: normalized package name match | Fedora Rawhide package metadata: nuget from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Package manager for .Net/Mono development platform | http://nuget.org/
- dnf - nuget-devel - 2.8.7-25.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## Combined YAML source

View the package source record on GitHub. [combined/nuget.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nuget.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
