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

NCurses Disk Usage. Version 2.9.2 via Homebrew; verified 2026-06-14. Also installable with debian: sudo apt install ncdu.

## 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:ncdu
- **Package manager:** Homebrew
- **Version:** 2.9.2
- **Source summary:** NCurses Disk Usage
- **Homepage:** <https://dev.yorhel.nl/ncdu>
- **Last updated:** 2026-06-14T14:13:25-04:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- ncdu (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.9.2
## 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
## 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.11.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: ncdu from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Text-based disk usage viewer | https://github.com/BratishkaErik/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.5: normalized package name match | openSUSE Tumbleweed package metadata: ncdu from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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


## Combined YAML source

View the package source record on GitHub. [combined/ncdu.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ncdu.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
