# 使用 Homebrew, Nix, scoop 安装 bundletool

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

## 安装

```sh
sudo av install brew:bundletool
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bundletool
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bundletool
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/bundletool
```

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

## 软件包事实

- **软件包键:** brew:bundletool
- **软件包管理器:** Homebrew
- **版本:** 1.18.3
- **来源摘要:** Command-line tool to manipulate Android App Bundles
- **主页:** <https://github.com/google/bundletool>
- **仓库:** <https://github.com/google/bundletool>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bundletool (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.18.3
## 项目历史与用法

bundletool is Google's command-line tool for building, inspecting, generating, extracting, and installing Android App Bundles, Android SDK Bundles, and the APK sets derived from them.

### 项目历史

bundletool grew out of the Android App Bundle distribution model introduced at Google I/O 2018. The official Android Developers blog described App Bundles and Google Play Dynamic Delivery as a way to publish all code and resources while letting Google Play deliver only the pieces matching a user's device.

The GitHub README defines bundletool's responsibilities around building app bundles from precompiled modules, generating APK Set archives for possible devices, extracting device-compatible APKs, installing those APKs, extracting device specs, and handling code transparency. It later also gained Android SDK Bundle responsibilities for runtime-enabled SDKs.

### 采用历史

bundletool became foundational Android packaging infrastructure because Android Studio, the Android Gradle plugin, and Google Play use it to construct App Bundles and convert them into APKs for deployment. Its command-line interface gives developers and CI systems the same underlying operations for local testing and release validation.

### 使用方式

Typical direct use includes generating an `.apks` archive from an `.aab`, extracting APKs compatible with a connected or described device, installing those APKs for testing, dumping bundle metadata, and creating device spec JSON. Most developers encounter it indirectly through Android Studio or Gradle, while release engineers use it explicitly in build pipelines.

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

bundletool is package-nerd significant because it separates the published Android package from the device-specific install artifact. It is the practical machinery behind App Bundles, split APK generation, dynamic delivery, code transparency checks, and SDK bundle packaging, so it changed what an Android 'package' means after the APK-only era.

### 时间线

- 2018-05: Android App Bundle and Google Play Dynamic Delivery announced at Google I/O.
- 2018: bundletool repository and command-line workflow became the reference tooling for App Bundles.
- 2024: 1.17.x releases added runtime-enabled SDK bundle validations and commands.
- 2025-01: 1.18.0 added device group targeting support.
- 2025-12: 1.18.3 release notes show ongoing bundle and SDK packaging maintenance.

### Related projects

- Related projects and systems include Android Studio, the Android Gradle plugin, Google Play, APKs, Android App Bundles, APK Set archives, dynamic feature modules, R8, and Android SDK Bundles.

### 来源

- <https://android-developers.googleblog.com/2018/05/google-io-2018-whats-new-in-android.html>
- <https://developer.android.com/studio/command-line/bundletool>
- <https://developer.android.com/tools/bundletool>
- <https://github.com/google/bundletool>
- <https://github.com/google/bundletool/releases>
- <https://raw.githubusercontent.com/google/bundletool/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - bundletool: normalized package name match | nixpkgs package indexes: pkgs/by-name/bu/bundletool/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/bundletool: normalized package name match | Scoop official bucket manifest trees: bucket/bundletool.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/bundletool.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bundletool.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
