# Install go with Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Open source programming language to build simple/reliable/efficient software. Version 1.26.5 via Homebrew; verified 2026-07-08.

## Install

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

## Agent safety answer

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

- **Credential access:** Reads environment variables, private module credentials, Git credentials, and project config.
- **Remote mutation:** Can run tools that call cloud, Git, or deployment APIs.
- **Publish/artifact risk:** Can produce release binaries and publish modules or container images via scripts.
- **Recommended control:** Gate release, private-module, and deployment commands.
- **Agent-use guidance:** Allow build/test commands; require approval for release publishing and credentialed module operations.

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install go
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install go
```

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

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

- dnf (92%):

```sh
sudo dnf install golang
```

  Evidence: Fedora Rawhide package metadata: golang from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

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

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

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

  Evidence: openSUSE Tumbleweed package metadata: go from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install go
```

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

- Scoop (92%):

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

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

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

## Package facts

- **Package key:** brew:go
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/go>
- **Version:** 1.26.5
- **Source summary:** Open source programming language to build simple/reliable/efficient software
- **Homepage:** <https://go.dev/>
- **Repository:** <https://go.googlesource.com/go>
- **Upstream docs:** <https://go.dev/doc>
- **License:** BSD-3-Clause
- **Source archive:** <https://go.dev/dl/go1.26.5.src.tar.gz>
- **Last updated:** 2026-07-08T03:14:15Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- go (cli)
- gofmt (cli)
- go (alias)
- gofmt (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.26.5
- Package-manager updated: 2026-07-08
- Local data: ok
- Upstream repository: https://go.dev/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

compiler and runtime ecosystem.

- **Geiger risk:** yellow / high
- compiler and runtime ecosystem
- **Approval gate rules:** 7

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** go
- **Aliases:** go@1.26, golang, google-go
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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.3-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.3-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.26.4-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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The Go Programming Language | https://go.dev
- pacman - go - 2:1.26.4-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-1.1: normalized package name match | openSUSE Tumbleweed package metadata: go from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | http://golang.org
- zypper - go-doc - 1.26-1.1: normalized package name match | openSUSE Tumbleweed package metadata: go-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Go documentation | http://golang.org
- zypper - go-race - 1.26-1.1: normalized package name match | openSUSE Tumbleweed package metadata: go-race from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Go runtime race detector | https://compiler-rt.llvm.org/
- zypper - go1.21 - 1.21.13-8.1: normalized package name match | openSUSE Tumbleweed package metadata: go1.21 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.22 - 1.22.12-4.1: normalized package name match | openSUSE Tumbleweed package metadata: go1.22 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.23 - 1.23.12-3.1: normalized package name match | openSUSE Tumbleweed package metadata: go1.23 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.24 - 1.24.13-2.1: normalized package name match | openSUSE Tumbleweed package metadata: go1.24 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.25 - 1.25.11-2.1: normalized package name match | openSUSE Tumbleweed package metadata: go1.25 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A compiled, garbage-collected, concurrent programming language | https://go.dev/
- zypper - go1.26 - 1.26.4-2.1: normalized package name match | openSUSE Tumbleweed package metadata: go1.26 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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
- Chocolatey - go: normalized package name match | Chocolatey community package catalog: go from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','glab'


## Related links

- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [bunster](https://www.automicvault.com/pkg/brew/bunster/) - Popular package that depends on this formula.
- [cobra-cli](https://www.automicvault.com/pkg/brew/cobra-cli/) - Popular package that depends on this formula.
- [counterfeiter](https://www.automicvault.com/pkg/brew/counterfeiter/) - Popular package that depends on this formula.
- [go-bindata](https://www.automicvault.com/pkg/brew/go-bindata/) - Popular package that depends on this formula.
- [go-blueprint](https://www.automicvault.com/pkg/brew/go-blueprint/) - Popular package that depends on this formula.
- [go-critic](https://www.automicvault.com/pkg/brew/go-critic/) - Popular package that depends on this formula.
- [gofumpt](https://www.automicvault.com/pkg/brew/gofumpt/) - Popular package that depends on this formula.
- [lisette](https://www.automicvault.com/pkg/brew/lisette/) - Shares av.db curated category or tags: cli, compiler, go, language-runtime, programming-language.
- [swift](https://www.automicvault.com/pkg/brew/swift/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language, toolchain.
- [xgo](https://www.automicvault.com/pkg/brew/xgo/) - Shares av.db curated category or tags: cli, compiler, go, language-runtime, programming-language.
- [algol68g](https://www.automicvault.com/pkg/brew/algol68g/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [ats2-postiats](https://www.automicvault.com/pkg/brew/ats2-postiats/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [ballerina](https://www.automicvault.com/pkg/brew/ballerina/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [chapel](https://www.automicvault.com/pkg/brew/chapel/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.
- [coconut](https://www.automicvault.com/pkg/brew/coconut/) - Shares av.db curated category or tags: cli, compiler, language-runtime, programming-language.

## Combined YAML source

View the package source record on GitHub. [combined/go.yml](https://github.com/automic-vault/db/blob/main/combined/go.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- approval-gate seed metadata
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
