# Install ncdu with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

NCurses Disk Usage. Version 2.9.2 via Homebrew; verified 2026-06-14.

## Install

```sh
sudo av install brew:ncdu
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ncdu
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ncdu
```

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

### Linux

- apk (92%):

```sh
sudo apk add ncdu
```

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

- Debian apt (92%):

```sh
sudo apt install ncdu
```

  Evidence: Debian stable package indexes: ncdu from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ncdu
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#ncdu
```

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

- pacman (92%):

```sh
sudo pacman -S ncdu
```

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

- zypper (92%):

```sh
sudo zypper install ncdu
```

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

## Package facts

- **Package key:** brew:ncdu
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ncdu>
- **Version:** 2.9.2
- **Source summary:** NCurses Disk Usage
- **Homepage:** <https://dev.yorhel.nl/ncdu>
- **Repository:** <https://code.blicky.net/yorhel/ncdu>
- **Upstream docs:** <https://dev.yorhel.nl/ncdu>
- **License:** MIT
- **Source archive:** <https://dev.yorhel.nl/download/ncdu-2.9.2.tar.gz>
- **Last updated:** 2026-06-14T14:13:25-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ncdu (cli)
- ncdu (alias)

## Dependencies

- ncurses
- zstd

## Build dependencies

- pkgconf
- zig@0.15

## 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.9.2
- Package-manager updated: 2026-06-14
- Local data: ok
- Upstream repository: https://dev.yorhel.nl/ncdu
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

ncdu, NCurses Disk Usage, is a text-mode disk usage analyzer built for finding space hogs where a graphical disk viewer is unavailable or unwanted. Upstream explicitly frames it as fast, simple, easy to use, and portable across POSIX-like systems.

### Project history

The 1.x release history reaches a first stable release on 2007-04-06. The project matured around practical filesystem inspection: deletion from the UI in 1.1, apparent-size/disk-usage toggling and refresh in 1.3, hard-link detection in 1.6, export/import workflows in 1.9, extended file information in 1.13, and many portability fixes for Linux, macOS, Cygwin, and other Unix-like environments.

The project later split into a maintained C 1.x branch and a Zig 2.x branch. The 2.0 beta line began on 2021-07-22 with features based on ncdu 1.16, lower memory use in many scenarios, and improved hard-link counting; 2.0 followed on 2021-12-21 requiring Zig 0.9. Upstream describes 1.x as an LTS C version that lags on features and performance but remains maintained and usable.

### Adoption history

ncdu is the standout adoption story in this batch. It is packaged across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, Nix, MacPorts, and other ecosystems, and the Homebrew formula API response consulted for this July 2026 batch reported 2,878 install-on-request events in 30 days and 56,718 in 365 days.

### How it is used

The common package-nerd workflow is `ncdu /path` on servers, containers, build machines, and full developer laptops, followed by keyboard navigation into large directories and cautious deletion from inside the TUI. It is also used non-interactively by exporting scans with `-o` and reloading them with `-f`, which is useful when collecting filesystem data from a remote or restricted environment and inspecting it later.

### Why package nerds care

ncdu is a canonical example of a small Unix tool that beats heavier GUI alternatives for a frequent operations problem. It sits next to `du`, `find`, and `df`: not replacing them, but turning their disk-usage data into an interactive browser that is comfortable over SSH.

### Timeline

- 2007-04-06: ncdu 1.0 first stable release.
- 2012-09-27: 1.9 added dump-to-file and load-from-file workflows.
- 2018-01-29: 1.13 added extended information mode and experimental color support.
- 2021-07-22: 2.0-beta1 announced the Zig branch based on ncdu 1.16.
- 2025-03-05: 1.22 and 2.8 landed on the maintained C and Zig lines.

### Related projects

- du, ncurses, Zig, POSIX filesystems

### Sources

- <https://dev.yorhel.nl/ncdu>
- <https://dev.yorhel.nl/ncdu/changes>
- <https://dev.yorhel.nl/ncdu/changes2>
- <https://formulae.brew.sh/api/formula/ncdu.json>


## Security Notes

narrow executable package without higher-risk signals.

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


## 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: /etc/ncdu.conf, ~/.config/ncdu/config
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ncdu
- **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

- Debian apt - ncdu - 1.22-1: normalized package name match | Debian stable package indexes: ncdu from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ncurses disk usage viewer | https://dev.yorhel.nl/ncdu/
- Nix - ncdu: normalized package name match | nixpkgs package indexes: pkgs/by-name/nc/ncdu/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ncdu - 1.19-0.1: normalized package name match | Ubuntu 24.04 LTS package indexes: ncdu from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ncurses disk usage viewer | https://dev.yorhel.nl/ncdu/
- apk - ncdu - 1.22-r2: normalized package name match | Alpine Linux edge package indexes: ncdu from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Text-based disk usage viewer | https://dev.yorhel.nl/ncdu
- apk - ncdu-doc - 1.22-r2: normalized package name match | Alpine Linux edge package indexes: ncdu-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Text-based disk usage viewer (documentation) | https://dev.yorhel.nl/ncdu
- dnf - ncdu - 2.9.2-2.fc44: normalized package name match | Fedora Rawhide package metadata: ncdu from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Text-based disk usage viewer | https://dev.yorhel.nl/ncdu/
- pacman - ncdu - 2.9.2-1: normalized package name match | Arch Linux sync databases: ncdu from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Disk usage analyzer with an ncurses interface | https://dev.yorhel.nl/ncdu
- zypper - ncdu - 1.22-1.3: normalized package name match | openSUSE Tumbleweed package metadata: ncdu from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | NCurses Disk Usage | https://dev.yorhel.nl/ncdu/
- MacPorts - ncdu: normalized package name match | MacPorts ports tree: sysutils/ncdu/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [ncurses](https://www.automicvault.com/pkg/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [gdu](https://www.automicvault.com/pkg/brew/gdu/) - Shares av.db curated category or tags: cli, disk-usage, storage, system.
- [dua-cli](https://www.automicvault.com/pkg/brew/dua-cli/) - Shares av.db curated category or tags: cli, disk-usage, storage, system.
- [duc](https://www.automicvault.com/pkg/brew/duc/) - Shares av.db curated category or tags: cli, disk-usage, storage, system.
- [baobab](https://www.automicvault.com/pkg/brew/baobab/) - Shares av.db curated category or tags: cli, disk-usage, storage, system.
- [di](https://www.automicvault.com/pkg/brew/di/) - Shares av.db curated category or tags: cli, disk-usage, storage, system.
- [agedu](https://www.automicvault.com/pkg/brew/agedu/) - Shares av.db curated category or tags: cli, disk-usage, system.
- [device-mapper](https://www.automicvault.com/pkg/brew/device-mapper/) - Shares av.db curated category or tags: cli, storage, system.
- [dfc](https://www.automicvault.com/pkg/brew/dfc/) - Shares av.db curated category or tags: cli, disk-usage, system.

## Combined YAML source

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