# 安装 go

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

## 安装

```sh
sudo av install brew:go
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install go
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install go
```

  证据: MacPorts ports tree: lang/go/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add go
```

  证据: Alpine Linux edge package indexes: go from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#go
```

  证据: nixpkgs package indexes: go from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S go
```

  证据: Arch Linux sync databases: go from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install go
```

  证据: openSUSE Tumbleweed package metadata: go from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install go
```

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

- Scoop (92%):

```sh
scoop install main/go
```

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

- winget (92%):

```sh
winget install --id GoLang.Go -e
```

  证据: Windows Package Manager source index: GoLang.Go from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:go
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/go>
- **版本:** 1.26.3
- **来源摘要:** Open source programming language to build simple/reliable/efficient software
- **主页:** <https://go.dev/>
- **上游文档:** <https://go.dev/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://go.dev/dl/go1.26.3.src.tar.gz>
- **更新:** 2026-05-10T22:44:36-04:00
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- go (cli)
- gofmt (cli)
- go (别名)
- gofmt (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 1.26.3
- 管理器更新时间: 2026-05-10
- 本地数据: ok
- 上游仓库: https://go.dev/
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

compiler and runtime ecosystem.

- **Geiger 风险:** yellow / high
- compiler and runtime ecosystem
- **审批门规则:** 7

## 相关链接

- [golangci-lint](https://www.automicvault.com/pkg/brew/golangci-lint/) - Popular package that depends on this formula.
- [kubebuilder](https://www.automicvault.com/pkg/brew/kubebuilder/) - Popular package that depends on this formula.
- [operator-sdk](https://www.automicvault.com/pkg/brew/operator-sdk/) - Popular package that depends on this formula.
- [staticcheck](https://www.automicvault.com/pkg/brew/staticcheck/) - Popular package that depends on this formula.
- [gofumpt](https://www.automicvault.com/pkg/brew/gofumpt/) - Popular package that depends on this formula.
- [gosec](https://www.automicvault.com/pkg/brew/gosec/) - Popular package that depends on this formula.
- [goimports](https://www.automicvault.com/pkg/brew/goimports/) - Popular package that depends on this formula.
- [mage](https://www.automicvault.com/pkg/brew/mage/) - Popular package that depends on this formula.
- [go@1.24](https://www.automicvault.com/pkg/brew/go-1-24/) - Package name indicates the same formula family.
- [go@1.23](https://www.automicvault.com/pkg/brew/go-1-23/) - Package name indicates the same formula family.
- [go@1.25](https://www.automicvault.com/pkg/brew/go-1-25/) - Package name indicates the same formula family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/)
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## 来源

- Nucleus package database
- Geiger risk classifier
- approval-gate seed metadata
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
