# 使用 Homebrew, Nix 安装 bazel-remote

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bazel-remote
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bazel-remote
```

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

## 软件包事实

- **软件包键:** brew:bazel-remote
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bazel-remote>
- **版本:** 2.6.1
- **来源摘要:** Remote cache for Bazel
- **主页:** <https://github.com/buchgr/bazel-remote/>
- **仓库:** <https://github.com/buchgr/bazel-remote>
- **上游文档:** <https://github.com/buchgr/bazel-remote#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/buchgr/bazel-remote/archive/refs/tags/v2.6.1.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- bazel-remote (cli)
- bazel-remote (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.6.1
- 本地数据: OK
- 上游仓库: https://github.com/buchgr/bazel-remote
- 检测到的最新版本: v2.6.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

bazel-remote is a standalone HTTP/1.1 and gRPC remote build cache for Bazel and other REAPI clients, optimized for teams that want remote cache performance without operating a full remote execution service.

### 项目历史

The project began in August 2017 as a basic HTTP cache and grew into a production remote-cache server with disk storage, least-recently-used eviction, S3 and GCS backends, gRPC support, REAPI compatibility, and Prometheus-friendly operational endpoints.

Its README reports that bazel-remote has served terabytes of cache artifacts per day since April 2018 on commodity hardware and AWS servers, which is unusually explicit operational history for a package-manager formula.

### 采用历史

bazel-remote became useful as Bazel users adopted remote caching to make monorepo and CI builds faster without adopting remote execution at the same time.

Homebrew and Nix packaging reflect its role as deployable infrastructure: users install a single binary, point Bazel at its HTTP or gRPC endpoint, and size local disk or cloud-backed storage for their build workload.

### 使用方式

Operators configure a cache directory, maximum cache size, HTTP and/or gRPC listener, optional TLS/authentication, and optional proxy backends through flags, environment variables, or a YAML config file.

Bazel clients use bazel-remote for action-cache and content-addressable-storage reads and writes, while the server exposes /status, CAS test endpoints, metrics, and optional Remote Asset API support.

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

bazel-remote is package-nerd interesting because it packages build acceleration as a small Go service rather than a SaaS product or heavyweight cluster.

It sits at the boundary between package manager convenience and fleet infrastructure: a Homebrew-installed binary can be enough for local experiments, but the same executable can serve multi-terabyte-per-day CI traffic.

### 时间线

- 2017-08: Upstream git history starts with an initial HTTP cache implementation.
- 2018-04: README reports bazel-remote serving terabytes of cache artifacts per day from this period onward.
- 2020s: README documents HTTP/1.1, gRPC REAPI, cloud proxy backends, zstd compressed blobs, and operational endpoints.

### Related projects

- Bazel is the primary client and provides remote cache flags used with bazel-remote.
- bazelbuild/remote-apis defines the REAPI services that bazel-remote implements in part.
- Remote execution systems can use bazel-remote as a cache component or as a simpler alternative when execution offload is unnecessary.

### 来源

- Upstream git history for https://github.com/buchgr/bazel-remote starts in August 2017.
- <https://github.com/buchgr/bazel-remote#readme documents project purpose, production-use history since April 2018, APIs, storage backends, configuration, and auth.>
- source_facts.package-manager-url records the Homebrew packaging surface.


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: path passed with --config_file, $BAZEL_REMOTE_CONFIG_FILE

## Credential files

- Unix: path passed with --htpasswd_file, $BAZEL_REMOTE_HTPASSWD_FILE
## 源数据库详情

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

## 其他软件包管理器记录

- Nix - bazel-remote: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bazel-remote/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [bazel-diff](https://www.automicvault.com/zh-hans/pkg/brew/bazel-diff/) - Shares av.db curated category or tags: bazel, cli, developer-tools.
- [bazelisk](https://www.automicvault.com/zh-hans/pkg/brew/bazelisk/) - Shares av.db curated category or tags: bazel, cli, developer-tools.
- [buildifier](https://www.automicvault.com/zh-hans/pkg/brew/buildifier/) - Shares av.db curated category or tags: bazel, cli, developer-tools.
- [buildozer](https://www.automicvault.com/zh-hans/pkg/brew/buildozer/) - Shares av.db curated category or tags: bazel, cli, developer-tools.
- [gflags](https://www.automicvault.com/zh-hans/pkg/brew/gflags/) - Shares av.db curated category or tags: bazel, cli, developer-tools.
- [ibazel](https://www.automicvault.com/zh-hans/pkg/brew/ibazel/) - Shares av.db curated category or tags: bazel, cli, developer-tools.

## Combined YAML source

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


## 来源

- 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
