# 使用 Homebrew, apk, MacPorts, Nix, pacman, scoop, winget, zypper 安装 dive

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

## 安装

```sh
sudo av install brew:dive
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dive
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dive
```

  证据: MacPorts ports tree: devel/dive/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dive
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#dive
```

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

- pacman (92%):

```sh
sudo pacman -S dive
```

  证据: Arch Linux sync databases: dive from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install dive
```

  证据: openSUSE Tumbleweed package metadata: dive from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/dive
```

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

- winget (92%):

```sh
winget install --id OpenAgentPlatform.Dive -e
```

  证据: Windows Package Manager source index: OpenAgentPlatform.Dive from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:dive
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dive>
- **版本:** 0.13.1
- **来源摘要:** Tool for exploring each layer in a docker image
- **主页:** <https://github.com/wagoodman/dive>
- **仓库:** <https://github.com/wagoodman/dive>
- **上游文档:** <https://github.com/wagoodman/dive#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/wagoodman/dive/archive/refs/tags/v0.13.1.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- dive (cli)
- dive (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

dive is a terminal UI for inspecting Docker and OCI image layers, file changes, and wasted space. Its sweet spot is the package-builder and container-maintainer workflow: after an image build, run `dive` to see which layer added what and whether a Dockerfile is leaving avoidable bytes behind.

### 项目历史

The official GitHub repository was created in May 2018 by wagoodman and describes dive as a tool for exploring Docker image contents, layer changes, and ways to shrink Docker or OCI images. The README pairs the interactive layer browser with a CI mode that bypasses the UI and returns pass/fail results from image-efficiency rules.

The release train shows the project moving from Docker-centered inspection toward broader container-engine support. Official release metadata records v0.9.0 in November 2019 with initial Podman support, and later releases continued through the 2020s.

### 采用历史

dive became widely packaged because it solves a common container-image problem without requiring a registry service or heavyweight scanner. The official README lists installation paths through Homebrew, MacPorts, Arch, Nix, Scoop, winget, Chocolatey, Docker images, and direct release packages, which matches its role as a small cross-platform CLI/TUI utility.

### 使用方式

Users typically run `dive image:tag`, `dive build -t tag .`, or a containerized `dive` invocation mounted to the Docker socket. In CI, setting `CI=true` lets teams enforce thresholds from a `.dive-ci` file for image efficiency and wasted bytes.

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

For package nerds, dive is notable because it turns opaque container layers back into a browsable filesystem history. It sits near Dockerfile linters, image scanners, and build-cache tools, but its adoption comes from being easy to install locally and immediately useful when a package or image grows unexpectedly.

### 时间线

- 2018-05-13: Official GitHub repository created.
- 2019-11-05: v0.9.0 release published with initial Podman support.
- 2021-03-07: v0.10.0 release published.
- 2025-03-29: v0.13.1 release published.

### Related projects

- Related tools include Docker and Podman for building and loading images, Trivy and Grype for vulnerability-focused image inspection, and Hadolint for Dockerfile linting before the image is built.

### 来源

- <https://github.com/wagoodman/dive>
- <https://raw.githubusercontent.com/wagoodman/dive/master/README.md>
- <https://api.github.com/repos/wagoodman/dive>
- <https://api.github.com/repos/wagoodman/dive/releases?per_page=10>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## 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: $XDG_CONFIG_HOME/dive/*.yaml, $XDG_CONFIG_DIRS/dive/*.yaml, ~/.config/dive/*.yaml, ~/.dive.yaml, .dive-ci
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dive
- **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 - dive: normalized package name match | nixpkgs package indexes: pkgs/by-name/di/dive/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - dive - 0.13.1-r6: normalized package name match | Alpine Linux edge package indexes: dive from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Tool for exploring each layer in a docker image | https://github.com/wagoodman/dive
- pacman - dive - 0.13.1-1: normalized package name match | Arch Linux sync databases: dive from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool for exploring layers in a docker image | https://github.com/wagoodman/dive
- zypper - dive - 0.13.1-1.4: normalized package name match | openSUSE Tumbleweed package metadata: dive from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Tool for exploring each layer in a docker image | https://github.com/wagoodman/dive
- MacPorts - dive: normalized package name match | MacPorts ports tree: devel/dive/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/dive: normalized package name match | Scoop official bucket manifest trees: bucket/dive.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - OpenAgentPlatform.Dive: normalized package name match | Windows Package Manager source index: OpenAgentPlatform.Dive from https://cdn.winget.microsoft.com/cache/source.msix
- winget - wagoodman.dive: normalized package name match | Windows Package Manager source index: wagoodman.dive from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Cloud CLI packages](https://www.automicvault.com/zh-hans/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [cdebug](https://www.automicvault.com/zh-hans/pkg/brew/cdebug/) - Shares av.db curated category or tags: cli, containers, developer-tools, docker.
- [cek](https://www.automicvault.com/zh-hans/pkg/brew/cek/) - Shares av.db curated category or tags: cli, containers, developer-tools, image-layers.
- [cekit](https://www.automicvault.com/zh-hans/pkg/brew/cekit/) - Shares av.db curated category or tags: cli, containers, developer-tools, docker.
- [chunkah](https://www.automicvault.com/zh-hans/pkg/brew/chunkah/) - Shares av.db curated category or tags: cli, containers, developer-tools, image-layers.
- [devcontainer](https://www.automicvault.com/zh-hans/pkg/brew/devcontainer/) - Shares av.db curated category or tags: cli, containers, developer-tools, docker.
- [dockcheck](https://www.automicvault.com/zh-hans/pkg/brew/dockcheck/) - Shares av.db curated category or tags: cli, containers, developer-tools, docker.
- [docker](https://www.automicvault.com/zh-hans/pkg/brew/docker/) - Shares av.db curated category or tags: cli, containers, developer-tools, docker.
- [docker-buildx](https://www.automicvault.com/zh-hans/pkg/brew/docker-buildx/) - Shares av.db curated category or tags: cli, containers, developer-tools, docker.
- [docker-squash](https://www.automicvault.com/zh-hans/pkg/brew/docker-squash/) - Both packages work with overlapping file formats or content types. Shared terms: cli, containers, developer, developer-tools, docker.

## Combined YAML source

View the package source record on GitHub. [combined/dive.yml](https://github.com/automic-vault/db/blob/main/combined/dive.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
