# 使用 Homebrew, chocolatey 安装 dotnet@9

查看 dotnet@9 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:dotnet@9
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dotnet@9
```

  证据: local Homebrew formula metadata

### Windows

- Chocolatey (92%):

```sh
choco install dotnet
```

  证据: Chocolatey community package catalog: dotnet from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','dispcalgui.install'

## 软件包事实

- **软件包键:** brew:dotnet@9
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dotnet@9>
- **版本:** 9.0.119
- **来源摘要:** .NET Core
- **主页:** <https://dotnet.microsoft.com/>
- **仓库:** <https://github.com/dotnet/dotnet>
- **上游文档:** <https://dotnet.microsoft.com/>
- **许可证:** MIT
- **源码归档:** <https://github.com/dotnet/dotnet/archive/refs/tags/v9.0.119.tar.gz>
- **最后更新:** 2026-07-15T02:48:14Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 依赖

- brotli
- icu4c@78
- openssl@3

## 构建依赖

- cmake
- grep
- llvm@20
- pkgconf
- rapidjson

## macOS 提供的库

- krb5

## 安装行为

- post-install 钩子: 未定义
- 注意事项: For other software to find dotnet you may need to set: export DOTNET_ROOT="$HOMEBREW_PREFIX/opt/dotnet@9/libexec"
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 9.0.119
- 管理器更新时间: 2026-07-15
- 本地数据: OK
- 上游仓库: https://github.com/dotnet/dotnet
- 检测到的最新版本: v9.0.119 (当前)
## 项目历史与用法

.NET 9 is the November 2024 Standard Term Support release of modern .NET. The Homebrew dotnet@9 formula gives developers a pinned SDK/runtime family for projects that adopted the .NET 9 train before or alongside the later .NET 10 LTS line.

### 项目历史

Microsoft's release metadata lists .NET 9.0 as released on November 12, 2024, with support through November 10, 2026. Its preview cycle began in February 2024 and moved through release candidates before the general availability release.

### 采用历史

.NET 9 followed the annual cadence as an STS release, making it attractive for teams willing to pick up newer runtime, SDK, C# 13, ASP.NET Core, and library features before the next LTS. Versioned package-manager entries let those teams keep that train available even after newer unversioned packages advance.

### 使用方式

Developers install dotnet@9 to build, run, test, and publish projects targeting net9.0 and related ASP.NET Core, EF Core, MAUI, and SDK workloads. As with other .NET SDKs, project files and global.json are the usual controls for selecting it in multi-SDK environments.

### 为什么软件包爱好者会关心

dotnet@9 is a textbook example of package-manager lifecycle pinning for a runtime with annual major releases. Its STS status matters because catalogs must keep it installable for reproducible builds while also signaling that it is not the long-lived LTS baseline.

### 时间线

- 2024: .NET 9.0 Preview 1 appeared in February.
- 2024: .NET 9.0 was released on November 12 as an STS release.
- 2026: Microsoft lists November 10, 2026 as the end of support for .NET 9.

### Related projects

- .NET
- ASP.NET Core 9
- Entity Framework Core 9
- C# 13
- NuGet

### 来源

- <https://github.com/dotnet/core/blob/main/release-notes/9.0/README.md>
- <https://github.com/dotnet/core/blob/main/releases.md>
- <https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/overview>
- <https://formulae.brew.sh/formula/dotnet@9>


## 安全说明

没有找到 dotnet@9 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

## 其他软件包管理器记录

- Chocolatey - dotnet: versioned package alias match | Chocolatey community package catalog: dotnet from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','dispcalgui.install'


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [brotli](https://pkg.so/zh-hans/brew/brotli/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [llvm@20](https://pkg.so/zh-hans/brew/llvm-20/) - Build dependency declared by Homebrew.
- [grep](https://pkg.so/zh-hans/brew/grep/) - Build dependency declared by Homebrew.
- [jackett](https://pkg.so/zh-hans/brew/jackett/) - Popular package that depends on this formula.
- [marksman](https://pkg.so/zh-hans/brew/marksman/) - Popular package that depends on this formula.
- [statesmith](https://pkg.so/zh-hans/brew/statesmith/) - Popular package that depends on this formula.
- [dotnet](https://pkg.so/zh-hans/brew/dotnet/) - Package name indicates the same formula family.
- [dotnet@8](https://pkg.so/zh-hans/brew/dotnet-8/) - Package name indicates the same formula family.
- [mono](https://pkg.so/zh-hans/brew/mono/) - Shares pkgdb curated category or tags: cli, dotnet, language-runtime, runtime.
- [node](https://pkg.so/zh-hans/brew/node/) - Shares pkgdb curated category or tags: cli, language-runtime, runtime.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Shares pkgdb curated category or tags: cli, language-runtime, runtime.
- [python@3.13](https://pkg.so/zh-hans/brew/python-3-13/) - Shares pkgdb curated category or tags: cli, language-runtime, runtime.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Shares pkgdb curated category or tags: cli, language-runtime, runtime.
- [python@3.12](https://pkg.so/zh-hans/brew/python-3-12/) - Shares pkgdb curated category or tags: cli, language-runtime, runtime.

## Combined YAML source

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


## 来源

- pkg.so package database
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
