# Install bazel@8 with Homebrew, Nix, apk, zypper, chocolatey, MacPorts, pacman, scoop, winget

Google's own build tool. Version 8.7.0 via Homebrew; verified 2026-05-23.

## Install

```sh
sudo av install brew:bazel@8
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bazel@8
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bazel
```

  Evidence: MacPorts ports tree: devel/bazel/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bazel_8
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ba/bazel_8/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- apk (92%):

```sh
sudo apk add bazel8
```

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

- zypper (92%):

```sh
sudo zypper install bazel8
```

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

- pacman (92%):

```sh
sudo pacman -S bazel
```

  Evidence: Arch Linux sync databases: bazel from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Chocolatey (92%):

```sh
choco install bazel
```

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

- Scoop (92%):

```sh
scoop install main/bazel
```

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

- winget (92%):

```sh
winget install --id Bazel.Bazel -e
```

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

## Package facts

- **Package key:** brew:bazel@8
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/bazel@8>
- **Version:** 8.7.0
- **Source summary:** Google's own build tool
- **Homepage:** <https://bazel.build/>
- **Repository:** <https://github.com/bazelbuild/bazel>
- **Upstream docs:** <https://bazel.build/versions/8.7.0/docs>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/bazelbuild/bazel/releases/download/8.7.0/bazel-8.7.0-dist.zip>
- **Last updated:** 2026-05-23T15:08:34-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- bazel-8.7.0 (cli)
- bazel-8.7.0 (alias)

## Dependencies

- openjdk@21

## Uses from macOS

- unzip
- zip

## Install behavior

- Post-install hook: 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: 8.7.0
- Package-manager updated: 2026-05-23
- Local data: ok
- Upstream repository: https://github.com/bazelbuild/bazel
- info: No cached GitHub release or tag data was available.
## Project history and usage

bazel@8 packages the Bazel 8 long-term-support line, the release that made Bzlmod the normal dependency-management path and turned off automatic WORKSPACE reading by default.

### Project history

Bazel 8.0 LTS was released on December 9, 2024. The official release post describes it as a streamlining release with Bzlmod as the default for dependency management and major bundled rulesets split into Starlark modules.

The release post says Bzlmod began as an experimental feature in Bazel 5, became generally available in Bazel 6, was turned on in Bazel 7, and in Bazel 8 works with the old WORKSPACE mechanism turned off by default.

### Adoption history

Bazel 8 adoption was tied to migration work: repositories needed to move external dependencies from WORKSPACE to MODULE.bazel/Bzlmod and prepare for Bazel 9's planned removal of WORKSPACE functionality.

The official Bazel 8 release post reported the Bazel Central Registry hosting more than 500 modules with 2500+ versions, showing that the module ecosystem had become broad enough to support default Bzlmod workflows.

### How it is used

Users install bazel@8 when they want the Bazel 8 LTS behavior without jumping to the latest unversioned Bazel formula. This is useful for CI images, reproducible developer setup, and staged migration to Bzlmod and Starlark-loaded rules.

Bazel 8 workspaces commonly pair the versioned binary with .bazelrc flags, MODULE.bazel, Bazel Central Registry modules, and Bazelisk-managed version pinning.

### Why package nerds care

bazel@8 is historically significant because it packages the moment Bazel's external dependency system crossed from optional migration to default behavior.

It also shows why build tools keep versioned formulas: a Bazel major version encodes ecosystem compatibility decisions, not merely executable features.

### Timeline

- 2021: Bzlmod is introduced experimentally in the Bazel 5 era, according to the Bazel 8 release post.
- 2023-12: Bazel 7 turns Bzlmod on by default.
- 2024-12-09: Bazel 8.0 LTS is released.
- 2024-12: Bazel 8 stops automatically reading WORKSPACE and WORKSPACE.bzlmod by default.
- 2026: The input's Homebrew metadata shows bazel@8 still packaged as a versioned formula with Bazel 8.7.x executables.

### Related projects

- Bazelisk is commonly used to pin Bazel 8 in repository-local .bazelversion files.
- Bazel Central Registry is the module ecosystem that makes Bazel 8's default Bzlmod workflow practical.
- bazel-remote remains important for Bazel 8 users because remote caching and Build without the Bytes are central to modern Bazel performance.

### Sources

- Upstream git tag history for https://github.com/bazelbuild/bazel/tree/8.0.0 confirms the 2024-12-09 release tag.
- <https://bazel.build/versions/8.7.0/docs provides official Bazel 8 documentation.>
- <https://bazel.build/versions/8.7.0/run/bazelrc documents Bazel 8 bazelrc locations.>
- <https://blog.bazel.build/2024/12/09/bazel-8-release.html documents the Bazel 8.0 LTS release, Bzlmod/WORKSPACE changes, ruleset modularization, and BCR module counts.>
- source_facts.package-manager records versioned package availability.


## Security Notes

No matching local secret-handling manifest was found for bazel@8. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /etc/bazel.bazelrc, $workspace/.bazelrc, ~/.bazelrc
- Windows: %ProgramData%\bazel.bazelrc, %USERPROFILE%\.bazelrc, %HOME%/.bazelrc
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bazel@8
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** yes
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - bazel_8: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bazel_8/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - bazel8 - 8.7.0-r0: package manager index match | Alpine Linux edge package indexes: bazel8 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bazel is an open-source build and test tool | https://bazel.build/
- apk - bazel8-bash-completion - 8.7.0-r0: package manager index match | Alpine Linux edge package indexes: bazel8-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for bazel8 | https://bazel.build/
- zypper - bazel8 - 8.4.1-1.3: package manager index match | openSUSE Tumbleweed package metadata: bazel8 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Tool for the automation of building and testing of software | https://bazel.build/
- Nix - bazel: versioned package alias match | nixpkgs package indexes: bazel from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- pacman - bazel - 9.1.1-1: versioned package alias match | Arch Linux sync databases: bazel from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Correct, reproducible, and fast builds for everyone | https://bazel.build/
- pacman - bazelisk - 1.29.0-1: versioned package alias match | Arch Linux sync databases: bazelisk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A user-friendly launcher for Bazel. | https://github.com/bazelbuild/bazelisk
- MacPorts - bazel: versioned package alias match | MacPorts ports tree: devel/bazel/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - bazel: versioned package alias match | Chocolatey community package catalog: bazel from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','backupper-standard'
- Scoop - main/bazel: versioned package alias match | Scoop official bucket manifest trees: bucket/bazel.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Bazel.Bazel: versioned package alias match | Windows Package Manager source index: Bazel.Bazel from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Matched curated package taxonomy and local package facts.
- [openjdk@21](https://www.automicvault.com/pkg/brew/openjdk-21/) - Runtime dependency declared by Homebrew.
- [bazel](https://www.automicvault.com/pkg/brew/bazel/) - Package name indicates the same formula family.
- [bazel@7](https://www.automicvault.com/pkg/brew/bazel-7/) - Package name indicates the same formula family.
- [bazel-diff](https://www.automicvault.com/pkg/brew/bazel-diff/) - Package names and metadata indicate a similar tool family. Shared terms: bazel, openjdk.

## Combined YAML source

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


## Sources

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
