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

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

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bazel@7
```

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

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

- apk (92%):

```sh
sudo apk add bazel7
```

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

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

## Executables

- bazel (cli)
- bazel-7.7.1 (cli)
- bazel (alias)
- bazel-7.7.1 (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: 7.7.1
- 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@7 packages the Bazel 7 long-term-support line, a major transition release where Bzlmod became enabled by default while legacy WORKSPACE support still remained available.

### Project history

Bazel 7.0 LTS was released on December 11, 2023. The official release post describes several multi-year efforts landing together: Bzlmod, Build without the Bytes, Skymeld, and platform-based toolchain resolution for bundled Android and C++ rules.

For package users, the key historical point is that Bazel 7 made Bzlmod default while still allowing old WORKSPACE-based dependency setup to continue. That made Bazel 7 a bridge release for repositories preparing for the stricter Bazel 8 and Bazel 9 migration path.

### Adoption history

Versioned bazel@7 packaging exists because many Bazel users pin major versions while migrating rulesets, WORKSPACE macros, .bazelrc flags, and CI images.

The input records bazel@7 across Homebrew, Alpine, Nix, and other package managers, showing the release line remained useful after newer Bazel versions shipped.

### How it is used

Users install bazel@7 when a workspace or CI fleet is standardized on the Bazel 7 LTS series, often alongside .bazelversion or Bazelisk so local and CI invocations agree.

Bazel 7 users commonly exercise Bzlmod migration while retaining WORKSPACE compatibility, then use the versioned docs and bazelrc docs to control flags during migration.

### Why package nerds care

bazel@7 is significant because it captures a rare package-manager case where the older major version is not just legacy: it is the compatibility runway for a build-system ecosystem migration.

It also marks the period when Bazel's module system moved from opt-in experimentation to the default path for external dependency management.

### Timeline

- 2023-12-11: Bazel 7.0 LTS is released.
- 2023-12: Bzlmod, Build without the Bytes, and Skymeld are enabled by default in Bazel 7.
- 2024: Bazel 7 remains the compatibility line before Bazel 8 disables WORKSPACE by default.
- 2026: The input's Homebrew metadata shows bazel@7 still packaged as a versioned formula with Bazel 7.7.x executables.

### Related projects

- Bazelisk can select Bazel 7 from .bazelversion or USE_BAZEL_VERSION, making it a common companion to bazel@7.
- Bazel Central Registry and Bzlmod are central to the Bazel 7 adoption story.
- bazel-remote and bazel-diff remain adjacent CI tools for Bazel 7 workspaces.

### Sources

- Upstream git tag history for https://github.com/bazelbuild/bazel/tree/7.0.0 confirms the 2023-12-11 release tag.
- <https://bazel.build/versions/7.7.0/docs provides official Bazel 7 documentation.>
- <https://bazel.build/versions/7.7.0/run/bazelrc documents Bazel 7 bazelrc locations.>
- <https://blog.bazel.build/2023/12/11/bazel-7-release.html documents the Bazel 7.0 LTS release, Bzlmod default, and migration context.>
- source_facts.package-manager records versioned package availability.


## Security Notes

No matching local secret-handling manifest was found for bazel@7. 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@7
- **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_7: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bazel_7/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - bazel: installed executable or alias match | MacPorts ports tree: devel/bazel/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - bazel: installed executable or alias match | nixpkgs package indexes: bazel from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - bazel7 - 7.7.1-r0: package manager index match | Alpine Linux edge package indexes: bazel7 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 - bazel7-bash-completion - 7.7.1-r0: package manager index match | Alpine Linux edge package indexes: bazel7-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for bazel7 | https://bazel.build/
- pacman - bazel - 9.1.1-1: installed executable or 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: installed executable or 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
- zypper - bazel8 - 8.4.1-1.3: installed executable or alias 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/
- Chocolatey - bazel: installed executable or 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: installed executable or 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: installed executable or 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@8](https://www.automicvault.com/pkg/brew/bazel-8/) - 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@7.yml](https://github.com/automic-vault/db/blob/main/combined/bazel@7.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
