# go mit Homebrew, apk, chocolatey, MacPorts, Nix, pacman, zypper, dnf, scoop, winget installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für go in AI-Agent-Workflows.

## Installation

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

## Antwort zur Agent-Sicherheit

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

- **Credential-Zugriff:** Reads environment variables, private module credentials, Git credentials, and project config.
- **Änderungen an Remote-Zustand:** Can run tools that call cloud, Git, or deployment APIs.
- **Publish-/Artefakt-Risiko:** Can produce release binaries and publish modules or container images via scripts.
- **Empfohlene Kontrolle:** Gate release, private-module, and deployment commands.
- **Hinweise für Agent-Nutzung:** Allow build/test commands; require approval for release publishing and credentialed module operations.

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install go
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install go
```

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

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

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

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

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

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

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

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

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

## Paketfakten

- **Paketschlüssel:** brew:go
- **Paketmanager:** Homebrew
- **Version:** 1.26.5
- **Quellzusammenfassung:** Open source programming language to build simple/reliable/efficient software
- **Homepage:** <https://go.dev/>
- **Zuletzt aktualisiert:** 2026-07-08T03:14:15Z
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- go (Alias)
- gofmt (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 1.26.5
## Projektgeschichte und Nutzung

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

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

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


## Sicherheitshinweise

compiler and runtime ecosystem.

- **Geiger-Risiko:** yellow / hoch
- compiler and runtime ecosystem
- **Approval-Gate-Regeln:** 7

## Andere Paketmanager-Einträge

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


## Quellen

- 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
