# 使用 Homebrew, apk, dnf, Nix 安装 manifest-tool

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

## 安装

```sh
sudo av install brew:manifest-tool
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install manifest-tool
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add manifest-tool
```

  证据: Alpine Linux edge package indexes: manifest-tool from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install manifest-tool
```

  证据: Fedora Rawhide package metadata: manifest-tool from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#manifest-tool
```

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

## 软件包事实

- **软件包键:** brew:manifest-tool
- **软件包管理器:** Homebrew
- **版本:** 2.2.2
- **来源摘要:** Command-line tool to create and query container image manifest list/indexes
- **主页:** <https://github.com/estesp/manifest-tool/>
- **仓库:** <https://github.com/estesp/manifest-tool>
- **最后更新:** 2026-05-06T12:33:46Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- manifest-tool (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

manifest-tool is a Go command-line utility for inspecting and pushing multi-platform container image manifest lists and OCI image indexes. It helped make multi-architecture container image publishing practical before those workflows were common in mainstream container CLIs.

### 项目历史

The public repository was created in March 2016. The README describes manifest-tool as one of the first command-line tools capable of assembling Docker v2.2 manifest lists, later more commonly known as OCI image indexes.

The project's history section says the codebase began as a joint project with Harshal Patil from IBM Bangalore and was originally forked from registry client code in skopeo, which later became part of the Red Hat container tooling ecosystem. The v2 rewrite removed the original skopeo-derived code, while the old code remained part of v1 releases.

### 采用历史

manifest-tool gained relevance during the transition from one-image-per-architecture publishing to a single image reference that can resolve to architecture-specific images. The README notes that Docker's early `docker manifest` command was based on code from manifest-tool through a Docker CLI pull request in early 2018.

The project distributes release binaries for many architectures and also publishes a Docker image, matching the multi-platform audience it serves. By 2026 the repository had hundreds of stars and forks, indicating continued use even after Docker and other container tools added overlapping functionality.

### 使用方式

Users inspect an image reference with `manifest-tool inspect` to see manifest or index entries and platform support. For publishing, `manifest-tool push` can read a YAML spec or command-line arguments that list platforms, source image templates, target image references, and tags.

For pushing to a registry, the README says credentials can be supplied on the command line, via credential helper support similar to the Docker client, or through an existing Docker client configuration.

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

For package and container infrastructure maintainers, manifest-tool is historically important because it represents the period when multi-arch container images were still being assembled with specialized external tooling. It is also a useful reference point for the evolution from Docker manifest lists to OCI indexes.

### 时间线

- 2016: Public GitHub repository created.
- 2016: Docker v2.2 manifest lists were the target format described by the project.
- 2018: Docker CLI manifest work drew on manifest-tool code according to the README.
- 2025: v2.2.0 release published.
- 2026: v2.2.2 release published.

### Related projects

- The README names skopeo as the original registry-client lineage for early manifest-tool code.
- The README points to `mquery` as a related utility for querying public image references.
- The Docker CLI `docker manifest` command is described by the README as having incorporated much of manifest-tool's original functionality.

### 来源

- <https://github.com/docker/cli/pull/138>
- <https://github.com/estesp/manifest-tool>
- <https://github.com/estesp/manifest-tool#readme>
- <https://github.com/estesp/manifest-tool/releases/tag/v2.2.2>
- <https://github.com/estesp/mquery>


## 安全说明

broad file, network, media, or database tool signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- infrastructure mutation or orchestration signal

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

- Nix - manifest-tool: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/manifest-tool/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - manifest-tool - 2.2.2-r0: normalized package name match | Alpine Linux edge package indexes: manifest-tool from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | tool for inspecting and creating multi-platform container images | https://github.com/estesp/manifest-tool
- dnf - manifest-tool - 2.0.8-13.fc45: normalized package name match | Fedora Rawhide package metadata: manifest-tool from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A command line tool used for creating manifest list objects | https://github.com/estesp/manifest-tool


## Combined YAML source

View the package source record on GitHub. [combined/manifest-tool.yml](https://github.com/mxcl/pkgdb/blob/main/combined/manifest-tool.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
