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

Google's own build tool. Version 9.1.1 via Homebrew; verified 2026-06-03.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bazel
```

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

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

- 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

- 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

### 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
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/bazel>
- **Version:** 9.1.1
- **Source summary:** Google's own build tool
- **Homepage:** <https://bazel.build/>
- **Repository:** <https://github.com/bazelbuild/bazel>
- **Upstream docs:** <https://bazel.build/>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/bazelbuild/bazel/releases/download/9.1.1/bazel-9.1.1-dist.zip>
- **Last updated:** 2026-06-03T22:54:00Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- bazel-9.1.0 (cli)
- bazel-9.1.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: 9.1.1
- Package-manager updated: 2026-06-03
- 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 is Google's open-source build and test system for large, multi-language codebases, famous in package-manager culture for bringing Google's Blaze-style hermetic, cached, queryable build graph to public monorepos.

### Project history

The public bazelbuild/bazel repository dates to February 2015 and the project reached Bazel 1.0 on October 10, 2019. The 1.0 announcement marked the start of semantic versioning and stability windows for backward-incompatible releases.

Bazel's official introduction emphasizes a high-level build language, Starlark rules, incremental rebuilds based on file content and commands, local and distributed caching, parallel execution, hermeticity, and scale to 100k+ source files and tens of thousands of users.

The modern Bazel line is shaped by dependency-management and rule-modularization migrations. Bazel 7 turned Bzlmod on by default; Bazel 8 turned the old WORKSPACE mechanism off by default; Bazel 9 is planned to remove WORKSPACE functionality.

### Adoption history

Bazel's adoption grew from Google's internal build culture into a public ecosystem of language rules, remote-cache servers, registries, CI tooling, and version managers. The official users page lists companies including Adobe, Asana, Canva, Databricks, Dropbox, Google, LinkedIn, Lyft, Nvidia, Pinterest, Snap, Stripe, Tinder, and Twitter.

Package-manager adoption reflects that cross-platform reach: the input records Bazel packages across Homebrew, Chocolatey, MacPorts, Nix, Arch, Scoop, winget, and zypper.

### How it is used

A Bazel workspace defines BUILD files and targets, then users run bazel build, test, run, query, or cquery from the command line. Bazel analyzes dependencies into an action graph and executes only the actions needed for requested outputs.

For repeatable package-manager workflows, .bazelrc files matter: official docs document system, workspace, and user rc files, while Bazelisk and .bazelversion are often used to pin the Bazel version per repository.

### Why package nerds care

Bazel is a package-nerd landmark because it made build tools behave more like content-addressed package systems: actions are keyed, cached, queried, remotely shared, and constrained toward hermetic reproducibility.

Its formula history is also interesting because current Homebrew carries both the moving bazel formula and versioned bazel@7 and bazel@8 formulas, acknowledging that Bazel upgrades can be migration events rather than ordinary patch bumps.

### Timeline

- 2015-02: Public bazelbuild/bazel git history begins.
- 2019-10-10: Bazel 1.0 is released and the project starts semantic-versioned release stability windows.
- 2023-12-11: Bazel 7.0 LTS is released with Bzlmod, Build without the Bytes, and Skymeld enabled by default.
- 2024-12-09: Bazel 8.0 LTS is released with Bzlmod as the default dependency-management system and WORKSPACE disabled by default.
- 2026: The input's Homebrew formula metadata shows the unversioned bazel formula tracking the Bazel 9 line.

### Related projects

- Bazelisk is the companion launcher/version manager that selects and downloads the right Bazel binary for a workspace.
- bazel-remote provides a standalone remote cache for Bazel and other REAPI clients.
- bazel-diff computes impacted Bazel targets between Git revisions for CI test selection.
- Bazel Central Registry and Bzlmod form Bazel's modern module distribution layer.

### Sources

- <https://bazel.build/about/intro documents Bazel's build/test model, scale, caching, supported platforms, and command-line use.>
- <https://bazel.build/community/users documents public adopters.>
- <https://blog.bazel.build/2019/10/10/bazel-1.0.html documents the 1.0 release and semantic-versioning policy.>
- <https://blog.bazel.build/2023/12/11/bazel-7-release.html documents Bazel 7 defaults including Bzlmod.>
- <https://blog.bazel.build/2024/12/09/bazel-8-release.html documents Bazel 8, Bzlmod default dependency management, and WORKSPACE being off by default.>
- source_facts.package-manager records package-manager availability across ecosystems.


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal


## 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, .bazelrc in the workspace directory, ~/.bazelrc
- Windows: %ProgramData%\bazel.bazelrc, %USERPROFILE%\.bazelrc, %HOME%/.bazelrc
## Source Database Details

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

## Other Package-Manager Records

- Nix - bazel: normalized package name 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: normalized package name 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: normalized package name 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
- zypper - bazel8 - 8.4.1-1.3: normalized package name 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/
- MacPorts - bazel: normalized package name match | MacPorts ports tree: devel/bazel/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - bazel: normalized package name 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: normalized package name 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: normalized package name match | Windows Package Manager source index: Bazel.Bazel from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [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.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openjdk@21](https://www.automicvault.com/pkg/brew/openjdk-21/) - Runtime dependency declared by Homebrew.
- [bazel@7](https://www.automicvault.com/pkg/brew/bazel-7/) - Package name indicates the same formula family.
- [bazel@8](https://www.automicvault.com/pkg/brew/bazel-8/) - Package name indicates the same formula family.
- [ant](https://www.automicvault.com/pkg/brew/ant/) - Shares av.db curated category or tags: build-tool, cli, developer-tools.
- [boot-clj](https://www.automicvault.com/pkg/brew/boot-clj/) - Shares av.db curated category or tags: build-tool, cli, developer-tools.
- [cabal-install](https://www.automicvault.com/pkg/brew/cabal-install/) - Shares av.db curated category or tags: build-tool, cli, developer-tools.
- [cargo-make](https://www.automicvault.com/pkg/brew/cargo-make/) - Shares av.db curated category or tags: build-tool, cli, developer-tools.
- [cariddi](https://www.automicvault.com/pkg/brew/cariddi/) - Shares av.db curated category or tags: build-tool, cli, developer-tools.
- [dub](https://www.automicvault.com/pkg/brew/dub/) - Shares av.db curated category or tags: build-tool, cli, developer-tools.
- [eask-cli](https://www.automicvault.com/pkg/brew/eask-cli/) - Shares av.db curated category or tags: build-tool, cli, developer-tools.
- [fobis](https://www.automicvault.com/pkg/brew/fobis/) - Shares av.db curated category or tags: build-tool, cli, developer-tools.
- [bazel-diff](https://www.automicvault.com/pkg/brew/bazel-diff/) - Package names and metadata indicate a similar tool family. Shared terms: bazel, cli, developer, developer-tools, openjdk.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
