# Install dua-cli with Homebrew, dnf, MacPorts, pacman, apk, Nix, scoop, winget

View disk space usage and delete unwanted data, fast. Version 2.37.1 via Homebrew; verified 2026-06-29.

## Install

```sh
sudo av install brew:dua-cli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dua-cli
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dua-cli
```

  Evidence: MacPorts ports tree: sysutils/dua-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install dua-cli
```

  Evidence: Fedora Rawhide package metadata: dua-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S dua-cli
```

  Evidence: Arch Linux sync databases: dua-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- apk (92%):

```sh
sudo apk add dua
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#dua
```

  Evidence: nixpkgs package indexes: pkgs/by-name/du/dua/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/dua
```

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

- winget (92%):

```sh
winget install --id Byron.dua-cli -e
```

  Evidence: Windows Package Manager source index: Byron.dua-cli from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:dua-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dua-cli>
- **Version:** 2.37.1
- **Source summary:** View disk space usage and delete unwanted data, fast
- **Homepage:** <https://lib.rs/crates/dua-cli>
- **Repository:** <https://github.com/Byron/dua-cli>
- **Upstream docs:** <https://github.com/Byron/dua-cli#readme>
- **License:** MIT
- **Source archive:** <https://github.com/Byron/dua-cli/archive/refs/tags/v2.37.1.tar.gz>
- **Last updated:** 2026-06-29T10:45:44Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dua (cli)
- dua (alias)

## Build dependencies

- rust

## 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: 2.37.1
- Package-manager updated: 2026-06-29
- Local data: ok
- Upstream repository: https://github.com/Byron/dua-cli
- Upstream latest detected: v2.37.1 (current)
## Project history and usage

dua-cli is a Rust disk-usage analyzer whose installed command is `dua`. It combines fast parallel directory scanning with an optional interactive terminal UI for exploring and deleting disk usage.

### Project history

The public GitHub repository was created in 2019, and crates.io records the crate shortly after. The README explains the name as 'Disk Usage Analyzer' and emphasizes parallel scanning that can saturate SSDs, plus an interactive mode designed with multi-stage deletion safeguards.

The project builds on Rust ecosystem libraries such as `jwalk` for parallel filesystem walking and `petgraph` for interactive graph handling. Its README also documents the removal of older terminal backend complexity in favor of crossterm.

### Adoption history

dua-cli is widely packaged for a Rust CLI of its size: Homebrew, MacPorts, Fedora, Arch, Nix, NetBSD/pkgsrc, Scoop, WinGet, Void Linux, Cargo, and binary release installers are all documented upstream. Crates.io metadata shows more than two hundred thousand total downloads, while Homebrew analytics show steady formula installs.

### How it is used

Basic usage mirrors `du`: run `dua`, `dua *`, or `dua aggregate` to inspect directory sizes. The `dua interactive` or `dua i` mode opens a terminal browser for navigating large trees and deleting unwanted data with confirmation steps. The optional config file controls interactive behavior such as Escape-key navigation.

### Why package nerds care

dua-cli is significant as part of the Rust replacement-tool lineage: a faster, friendlier take on classic Unix disk-usage workflows, packaged as a single CLI across many operating systems. It is also a useful comparison point against `du`, `ncdu`, `dust`, `gdu`, and graphical disk analyzers.

### Timeline

- 2019: Public Byron/dua-cli GitHub repository created.
- 2019: Crates.io records the `dua-cli` crate.
- 2020s: Upstream README documents installation through Homebrew, MacPorts, Cargo, Linux package managers, Scoop, WinGet, Nix, and binary releases.

### Related projects

- The README lists `du`, `dust`, `dutree`, `pdu`, `ncdu`, `gdu`, `godu`, GNOME Disk Usage Analyzer, and KDE Filelight as similar programs. It also acknowledges `jwalk` as a core reason the CLI could focus on user-facing behavior.

### Sources

- <https://github.com/Byron/dua-cli>
- <https://github.com/Byron/dua-cli#readme>
- <https://crates.io/api/v1/crates/dua-cli>
- <https://formulae.brew.sh/api/formula/dua-cli.json>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- dnf - dua-cli - 2.34.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: dua-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tool to conveniently learn about the disk usage of directories | https://crates.io/crates/dua-cli
- pacman - dua-cli - 2.34.0-2: normalized package name match | Arch Linux sync databases: dua-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool to conveniently learn about the disk usage of directories, fast! | https://github.com/Byron/dua-cli
- MacPorts - dua-cli: normalized package name match | MacPorts ports tree: sysutils/dua-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - dua: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/du/dua/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - dua - 2.34.0-r0: installed executable or alias match | Alpine Linux edge package indexes: dua from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Tool to conveniently learn about the usage of disk space | https://github.com/Byron/dua-cli
- apk - dua-bash-completion - 2.34.0-r0: installed executable or alias match | Alpine Linux edge package indexes: dua-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for dua | https://github.com/Byron/dua-cli
- apk - dua-fish-completion - 2.34.0-r0: installed executable or alias match | Alpine Linux edge package indexes: dua-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for dua | https://github.com/Byron/dua-cli
- apk - dua-zsh-completion - 2.34.0-r0: installed executable or alias match | Alpine Linux edge package indexes: dua-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for dua | https://github.com/Byron/dua-cli
- Scoop - main/dua: installed executable or alias match | Scoop official bucket manifest trees: bucket/dua.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Byron.dua-cli: installed executable or alias match | Windows Package Manager source index: Byron.dua-cli from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://www.automicvault.com/pkg/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [duc](https://www.automicvault.com/pkg/brew/duc/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, storage, system.
- [diskus](https://www.automicvault.com/pkg/brew/diskus/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, rust, system.
- [erdtree](https://www.automicvault.com/pkg/brew/erdtree/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, rust, system.
- [gdu](https://www.automicvault.com/pkg/brew/gdu/) - Shares av.db curated category or tags: cli, disk-usage, storage, system.
- [ncdu](https://www.automicvault.com/pkg/brew/ncdu/) - Shares av.db curated category or tags: cli, disk-usage, storage, system.
- [parallel-disk-usage](https://www.automicvault.com/pkg/brew/parallel-disk-usage/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, rust, system.
- [agedu](https://www.automicvault.com/pkg/brew/agedu/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, system.
- [dfc](https://www.automicvault.com/pkg/brew/dfc/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, system.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
