# 使用 Homebrew, chocolatey 安装 dotnet

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dotnet
```

  证据: 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
- **软件包管理器:** Homebrew
- **版本:** 10.0.302
- **来源摘要:** .NET Core
- **主页:** <https://dotnet.microsoft.com/>
- **仓库:** <https://github.com/dotnet/dotnet>
- **最后更新:** 2026-07-16T05:27:50Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dotnet (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 10.0.302
## 项目历史与用法

.NET is Microsoft's managed runtime, SDK, class-library, and command-line toolchain for building applications in C#, F#, and related languages. The Homebrew formula centers on the `dotnet` host and SDK/runtime distribution used from terminals, CI systems, containers, and editors.

### 项目历史

Modern .NET package history turns on the .NET Core shift. Microsoft announced in November 2014 that .NET Core, including the runtime and framework libraries, would be open source. .NET Core 1.0 shipped in June 2016 as a cross-platform line, and the release train later converged under the plain .NET name with .NET 5 in November 2020.

The current .NET ecosystem is organized around annual November major releases, split between Long Term Support and Standard Term Support versions. Official release metadata lists .NET 8 as an LTS release from November 2023, .NET 9 as an STS release from November 2024, and .NET 10 as an LTS release from November 2025.

### 采用历史

Adoption expanded from Windows-centered .NET Framework development into a cross-platform package-manager story: official downloads, Linux package repositories, container images, Homebrew, Chocolatey, and CI images all distribute the SDK and runtimes. That made `dotnet restore`, `dotnet build`, `dotnet test`, and `dotnet publish` common automation primitives outside Visual Studio.

### 使用方式

Developers use the `dotnet` CLI to create projects, restore NuGet packages, build, run, test, publish, manage workloads, and select SDK behavior through project files and global.json. It is both a language-runtime package and a build tool package.

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

For package nerds, .NET is important because it packages a large multi-runtime ecosystem behind one executable host. Versioned formulas such as dotnet@8 and dotnet@9 let systems pin SDK support windows, while the unversioned formula tracks the moving supported line used by workstations and CI images.

### 时间线

- 2014: Microsoft announced .NET Core would be open source.
- 2016: .NET Core 1.0 was released.
- 2020: .NET 5.0 started the unified post-Core naming line.
- 2023: .NET 8.0 shipped as an LTS release.
- 2024: .NET 9.0 shipped as an STS release.
- 2025: .NET 10.0 shipped as an LTS release.

### Related projects

- C#
- F#
- ASP.NET Core
- NuGet
- MSBuild
- Entity Framework Core

### 来源

- <https://devblogs.microsoft.com/dotnet/net-core-is-open-source/>
- <https://github.com/dotnet/core/blob/main/releases.md>
- <https://github.com/dotnet/runtime>
- <https://learn.microsoft.com/dotnet/core/tools/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

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


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
