# Install gdu with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Disk usage analyzer with console interface written in Go. Version 5.36.1 via Homebrew; verified 2026-04-30.

## Install

```sh
sudo av install brew:gdu
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gdu
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gdu
```

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

### Linux

- apk (92%):

```sh
sudo apk add gdu
```

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

- Debian apt (92%):

```sh
sudo apt install gdu
```

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

- dnf (92%):

```sh
sudo dnf install gdu
```

  Evidence: Fedora Rawhide package metadata: gdu 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#gdu
```

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

- pacman (92%):

```sh
sudo pacman -S gdu
```

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

- zypper (92%):

```sh
sudo zypper install gdu
```

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

### Windows

- Chocolatey (92%):

```sh
choco install gdu
```

  Evidence: Chocolatey community package catalog: gdu from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','gawk'

- Scoop (92%):

```sh
scoop install main/gdu
```

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

- winget (92%):

```sh
winget install --id dundee.gdu -e
```

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

## Package facts

- **Package key:** brew:gdu
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gdu>
- **Version:** 5.36.1
- **Source summary:** Disk usage analyzer with console interface written in Go
- **Homepage:** <https://github.com/dundee/gdu>
- **Repository:** <https://github.com/dundee/gdu>
- **Upstream docs:** <https://github.com/dundee/gdu#readme>
- **License:** MIT
- **Source archive:** <https://github.com/dundee/gdu/archive/refs/tags/v5.36.1.tar.gz>
- **Last updated:** 2026-04-30T00:20:06Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gdu-go (cli)
- gdu-go (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Caveats: To avoid a conflict with `coreutils`, `gdu` has been installed as `gdu-go`.
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 5.36.1
- Package-manager updated: 2026-04-30
- Local data: ok
- Upstream repository: https://github.com/dundee/gdu
- Upstream latest detected: v5.36.1 (current)
## Project history and usage

gdu is a fast terminal disk-usage analyzer written in Go, intended especially for SSDs where parallel directory scanning can be used effectively.

### Project history

The official repository was created in 2018 and presents gdu as a Go disk-usage analyzer with a console interface. Its README emphasizes interactive, non-interactive, and export modes, and explains that Gdu is primarily intended for SSD disks while still supporting HDDs with less performance gain.

Over time gdu added YAML configuration, JSON export/import, database-backed saved analyses, archive browsing, profiling, file viewing and deletion controls, and terminal styling options, while remaining a single command-line utility.

### Adoption history

The official installation page lists packages or installation methods across Arch Linux, Debian, Ubuntu, NixOS, Homebrew, Mise, Snap, Binenv, Go, Winget, Scoop, X-cmd, and COPR builds. In Homebrew, the package is installed as gdu-go to avoid a conflict with GNU coreutils.

### How it is used

Typical usage is running gdu against a directory or filesystem to browse large files interactively, or using non-interactive flags for summaries, top-N output, JSON export, ignored paths, age filters, and apparent-size or disk-usage views. Configuration is read from ~/.config/gdu/gdu.yaml or ~/.gdu.yaml.

### Why package nerds care

gdu belongs to the modern wave of fast, packaged replacements for classic Unix inspection tools: a Go binary with cross-platform releases, package-manager breadth, and terminal UI ergonomics. Its Homebrew rename to gdu-go is a small but classic package-manager detail caused by command-name conflicts.

### Timeline

- 2018: Official GitHub repository created.
- 2024: v5.x line continued with regular releases.
- 2026: v5.36.x releases published.

### Related projects

- gdu is related to classic du-style disk accounting tools and terminal disk analyzers. Its package-manager story is also related to GNU coreutils because Homebrew avoids installing it as gdu when that name would conflict.

### Sources

- <https://github.com/dundee/gdu>
- <https://github.com/dundee/gdu#readme>
- <https://github.com/dundee/gdu/blob/master/INSTALL.md>
- <https://github.com/dundee/gdu/releases>


## 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: ~/.config/gdu/gdu.yaml, ~/.gdu.yaml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gdu
- **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 - gdu - 5.25.0-1+b8: normalized package name match | Debian stable package indexes: gdu from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Pretty fast disk usage analyzer | https://github.com/dundee/gdu
- Nix - gdu: normalized package name match | nixpkgs package indexes: pkgs/by-name/gd/gdu/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gdu - 5.25.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: gdu from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Pretty fast disk usage analyzer | https://github.com/dundee/gdu
- apk - gdu - 5.36.1-r0: normalized package name match | Alpine Linux edge package indexes: gdu from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast disk usage calculator with console interface | https://github.com/dundee/gdu
- apk - gdu-doc - 5.36.1-r0: normalized package name match | Alpine Linux edge package indexes: gdu-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast disk usage calculator with console interface (documentation) | https://github.com/dundee/gdu
- dnf - gdu - 5.32.0-3.fc44: normalized package name match | Fedora Rawhide package metadata: gdu from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Fast disk usage analyzer with console interface written in Go | https://github.com/dundee/gdu
- pacman - gdu - 5.36.1-1: normalized package name match | Arch Linux sync databases: gdu from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fast disk usage analyzer | https://github.com/dundee/gdu
- zypper - gdu - 5.32.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: gdu from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Fast disk usage analyzer with console interface | https://github.com/dundee/gdu
- MacPorts - gdu: normalized package name match | MacPorts ports tree: sysutils/gdu/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - gdu: normalized package name match | Chocolatey community package catalog: gdu from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','gawk'
- Scoop - main/gdu: normalized package name match | Scoop official bucket manifest trees: bucket/gdu.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - dundee.gdu: normalized package name match | Windows Package Manager source index: dundee.gdu from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [ncdu](https://www.automicvault.com/pkg/brew/ncdu/) - 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.
- [diskonaut](https://www.automicvault.com/pkg/brew/diskonaut/) - Local package facts share a topical domain. Shared terms: cli, disk, disk-usage, system, terminal.

## Combined YAML source

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