# go を Homebrew, apk, chocolatey, MacPorts, Nix, pacman, zypper, dnf, scoop, winget でインストール

go のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

## エージェント安全性の回答

go builds and runs binaries that can access project files, modules, and release workflows.

- **認証情報アクセス:** Reads environment variables, private module credentials, Git credentials, and project config.
- **リモート変更:** Can run tools that call cloud, Git, or deployment APIs.
- **公開/成果物リスク:** Can produce release binaries and publish modules or container images via scripts.
- **推奨コントロール:** Gate release, private-module, and deployment commands.
- **エージェント利用ガイダンス:** Allow build/test commands; require approval for release publishing and credentialed module operations.

追加のインストールコマンド:

### 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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- dnf (92%):

```sh
sudo dnf install golang
```

  証拠: Fedora Rawhide package metadata: golang from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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','gitextensions'

- 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
- **バージョン:** 1.26.5
- **ソース概要:** Open source programming language to build simple/reliable/efficient software
- **ホームページ:** <https://go.dev/>
- **最終更新:** 2026-07-08T03:14:15Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- go (エイリアス)
- gofmt (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.26.5
## プロジェクトの歴史と使われ方

Go is an open source programming language, compiler, standard library, formatter, and command-line toolchain distributed through the go and gofmt executables.

### プロジェクトの歴史

Go was designed at Google beginning in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson to improve programming productivity for multicore, networked machines and large codebases. The project was launched to the public on 10 November 2009 as an open source language focused on simplicity and efficiency.

Go 1 was released on 28 March 2012 and established the compatibility promise that programs written for Go 1 should continue to compile and run under later Go 1 releases. That stability turned the experimental public release into a predictable platform for application code, libraries, and distribution packaging.

### 採用の歴史

The Go team described strong early community growth after the 2009 launch, including external contributors, mailing-list activity, and adoption both inside Google and by outside companies. By the project's tenth anniversary, Go's official blog described adoption across cloud infrastructure, naming Docker, Etcd, Istio, Kubernetes, Prometheus, and Terraform as examples of core cloud software written in Go.

### 使われ方

Practitioners use the go command to create modules, fetch dependencies, build, test, install commands, run programs, and maintain go.mod and go.sum files. A module's go.mod file defines the module path, Go version, and dependency requirements, while Go commands such as go mod tidy and go get keep those requirements consistent.

Go's toolchain model made the package more than a compiler binary. The distribution includes the go command plus a bundled toolchain made up of the standard library, compiler, assembler, and other tools; beginning with Go 1.21, the go command can also select or download toolchains according to go and toolchain lines in a module or workspace.

### パッケージ好きにとっての重要性

The brew:go formula is a foundational language-runtime package on macOS and Linux because it installs the canonical go command and gofmt formatter used to build Go software and many other Homebrew formulas from source.

### タイムライン

- 2007: Go design work began at Google.
- 2009: Go was launched as an open source project.
- 2012: Go 1 was released with the long-term compatibility promise.
- 2018: Go 1.11 introduced preliminary module support.
- 2021: Go 1.16 made module-aware mode the default and added //go:embed.
- 2023: Go 1.21 introduced automatic toolchain selection in the go command.

### Related projects

- Go's ecosystem includes pkg.go.dev, the standard library, the module proxy and checksum database, the x/tools repository, and large cloud-native projects such as Kubernetes, Terraform, Prometheus, Docker, Etcd, and Istio.

### ソース

- <https://formulae.brew.sh/formula/go>
- <https://go.dev/blog/10years>
- <https://go.dev/blog/1year>
- <https://go.dev/blog/modules2019>
- <https://go.dev/doc/devel/release>
- <https://go.dev/doc/modules/gomod-ref>
- <https://go.dev/doc/toolchain>
- <https://go.googlesource.com/go>


## セキュリティノート

compiler and runtime ecosystem.

- **Geiger リスク:** yellow / 高
- compiler and runtime ecosystem
- **承認ゲートルール:** 7

## 他のパッケージマネージャ記録

- Nix - go: normalized package name match | nixpkgs package indexes: go from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - go - 1.26.5-r0: normalized package name match | Alpine Linux edge package indexes: go from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Go programming language compiler | https://go.dev/
- apk - go-doc - 1.26.5-r0: normalized package name match | Alpine Linux edge package indexes: go-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Go programming language compiler (documentation) | https://go.dev/
- dnf - golang - 1.27~rc2-2.fc45: normalized package name match | Fedora Rawhide package metadata: golang from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The Go Programming Language | https://go.dev
- pacman - go - 2:1.26.5-1: normalized package name match | Arch Linux sync databases: go from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Core compiler tools for the Go programming language | https://go.dev/
- zypper - go - 1.26-2.3: normalized package name match | openSUSE Tumbleweed package metadata: go from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | http://golang.org
- zypper - go-doc - 1.26-2.3: normalized package name match | openSUSE Tumbleweed package metadata: go-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Go documentation | http://golang.org
- zypper - go-race - 1.26-2.3: normalized package name match | openSUSE Tumbleweed package metadata: go-race from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Go runtime race detector | https://compiler-rt.llvm.org/
- zypper - go1.21 - 1.21.13-11.2: normalized package name match | openSUSE Tumbleweed package metadata: go1.21 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.22 - 1.22.12-7.2: normalized package name match | openSUSE Tumbleweed package metadata: go1.22 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.23 - 1.23.12-6.2: normalized package name match | openSUSE Tumbleweed package metadata: go1.23 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.24 - 1.24.13-5.2: normalized package name match | openSUSE Tumbleweed package metadata: go1.24 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.25 - 1.25.12-2.2: normalized package name match | openSUSE Tumbleweed package metadata: go1.25 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.26 - 1.26.5-2.2: normalized package name match | openSUSE Tumbleweed package metadata: go1.26 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.27 - 1.27rc2-1.1: normalized package name match | openSUSE Tumbleweed package metadata: go1.27 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- MacPorts - go: normalized package name match | MacPorts ports tree: lang/go/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- approval-gate seed metadata
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
