# Install dive with Homebrew, apk, MacPorts, Nix, pacman, scoop, winget, zypper

Tool for exploring each layer in a docker image. Version 0.13.1 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dive
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dive
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:dive
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dive>
- **Version:** 0.13.1
- **Source summary:** Tool for exploring each layer in a docker image
- **Homepage:** <https://github.com/wagoodman/dive>
- **Repository:** <https://github.com/wagoodman/dive>
- **Upstream docs:** <https://github.com/wagoodman/dive#readme>
- **License:** MIT
- **Source archive:** <https://github.com/wagoodman/dive/archive/refs/tags/v0.13.1.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- dive (cli)
- dive (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.13.1
- Local data: ok
- Upstream repository: https://github.com/wagoodman/dive
- Upstream latest detected: v0.13.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- 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 Details

- **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

## Other Package-Manager Records

- 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


## Related links

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


## Sources

- 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
