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

Disk usage analyzer with console interface written in Go. Version 5.36.1 via Homebrew; verified 2026-07-27. Also installable with debian: sudo apt install gdu.

## 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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','fusioninventory-agent'

- 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
- **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>
- **Last updated:** 2026-07-27T14:57:48+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- gdu-go (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 5.36.1
## 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
## 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-r1: 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-r1: 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-4.fc45: normalized package name match | Fedora Rawhide package metadata: gdu from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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.7: normalized package name match | openSUSE Tumbleweed package metadata: gdu from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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','fusioninventory-agent'
- 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


## Combined YAML source

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