Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, MacPorts, Nix, pacman, scoop, winget, zypper 安装 bazel

查看 bazel 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install bazel

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install bazel

MacPorts ports tree · devel/bazel/Portfile · 来源: api.github.com

Windows

Chocolatey已验证 · 92%
choco install bazel

Chocolatey community package catalog · bazel · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/bazel

Scoop official bucket manifest trees · bucket/bazel.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Bazel.Bazel -e

Windows Package Manager source index · Bazel.Bazel · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Google's own build tool

命令和别名

  • bazel-9.1.0

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

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

来源

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:build tool

安装行为

  • Homebrew 为此 formula 声明了 post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
/etc/bazel.bazelrc.bazelrc in the workspace directory~/.bazelrc
Windows
%ProgramData%\bazel.bazelrc%USERPROFILE%\.bazelrc%HOME%/.bazelrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
bazel-9.1.0cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本9.2.0
管理器更新时间2026-07-14
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/bazelbuild/bazel

安装元数据

软件包元数据

软件包键brew:bazel
版本9.2.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/bazel
主页https://bazel.build/
仓库https://github.com/bazelbuild/bazel
上游文档https://bazel.build/
许可证Apache-2.0
源码归档https://github.com/bazelbuild/bazel/releases/download/9.2.0/bazel-9.2.0-dist.zip
最后更新2026-07-14T02:14:10Z
Pulseupdated
依赖openjdk@21
macOS 提供的库unzip, zip
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install已定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebazel
Aliases
  • bazel@9
Version Scheme0
Revision0
Conflicts With
  • bazelisk
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

bazel

nix profile install nixpkgs#bazel
  • normalized package name match
  • 匹配方式:Bazel
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: bazel from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
pacman95%

bazel 9.1.1-1

Correct, reproducible, and fast builds for everyone

https://bazel.build/

sudo pacman -S bazel
  • License: Apache-2.0
  • Architecture: x86_64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Bazel
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: bazel from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
pacman95%

bazelisk 1.29.0-1

A user-friendly launcher for Bazel.

https://github.com/bazelbuild/bazelisk

sudo pacman -S bazelisk
  • License: Apache-2.0
  • Architecture: x86_64
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Bazel
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: bazelisk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

bazel8 8.4.1-1.3

Tool for the automation of building and testing of software

https://bazel.build/

sudo zypper install bazel8
  • License: Apache-2.0 AND BSD-3-Clause AND MIT AND GPL-2.0-or-later AND BSD-2-Clause AND Python-2.0 AND Zlib AND BSL-1.0
  • Category: Development/Tools/Building
  • Architecture: x86_64
  • Source Package: bazel8
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Bazel
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: bazel8 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

bazel

sudo port install bazel
  • normalized package name match
  • 匹配方式:Bazel
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/bazel/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

bazel

choco install bazel
  • normalized package name match
  • 匹配方式:Bazel
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: bazel from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','backupper-standard'
Scoop95%

main/bazel

scoop install main/bazel
  • normalized package name match
  • 匹配方式:Bazel
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/bazel.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

Bazel.Bazel

winget install --id Bazel.Bazel -e
  • normalized package name match
  • 匹配方式:Bazel
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Bazel.Bazel from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment