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

Disk Usage/Free Utility - a better 'df' alternative. Version 0.9.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:duf
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install duf
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install duf
```

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

### Linux

- apk (92%):

```sh
sudo apk add duf
```

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

- Debian apt (92%):

```sh
sudo apt install duf
```

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

- dnf (92%):

```sh
sudo dnf install duf
```

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

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

- pacman (92%):

```sh
sudo pacman -S duf
```

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

- zypper (92%):

```sh
sudo zypper install duf
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/duf
```

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

- winget (92%):

```sh
winget install --id muesli.duf -e
```

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

## Package facts

- **Package key:** brew:duf
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/duf>
- **Version:** 0.9.1
- **Source summary:** Disk Usage/Free Utility - a better 'df' alternative
- **Homepage:** <https://github.com/muesli/duf>
- **Repository:** <https://github.com/muesli/duf>
- **Upstream docs:** <https://github.com/muesli/duf#readme>
- **License:** MIT
- **Source archive:** <https://github.com/muesli/duf/archive/refs/tags/v0.9.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- duf (cli)
- duf (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.9.1
- Local data: ok
- Upstream repository: https://github.com/muesli/duf
- Upstream latest detected: v0.9.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

duf, short for Disk Usage/Free Utility, is a Go-based replacement for df that presents disk and inode usage in a friendlier terminal table. It became one of the recognizable modern Unix-tool rewrites: small scope, nicer defaults, JSON output, and cross-platform packages.

### Project history

The public release series started in September 2020 and moved quickly through several 0.x releases. The README positions duf as a better df alternative for Linux, BSD, macOS, and Windows, with color, sorting, grouping, filtering, and JSON output.

Later releases kept the same core shape instead of expanding into a full disk analyzer. That stable scope is part of its appeal: it modernizes the one command people already know without replacing larger tools such as ncdu.

### Adoption history

duf's README documents packaging across Arch, Debian and Ubuntu, Fedora, Nix, Void, Gentoo, Solus, FreeBSD, OpenBSD, Homebrew, MacPorts, Chocolatey, Scoop, and Termux. Its broad package-manager footprint and GitHub popularity made it a common recommendation in terminal-tool lists.

### How it is used

Typical use is simply running duf to inspect mounted filesystems, then adding filters for mount points, filesystem types, table groups, columns, or sorting. JSON output makes it useful in scripts and monitoring checks where df's human output is awkward.

### Why package nerds care

duf is package-nerd shorthand for the wave of polished, single-purpose Go and Rust replacements for classic Unix commands. It keeps df's job but adds terminal-aware output and packaging for every major desktop and server environment.

### Timeline

- 2020: v0.1.0 published and the project entered a rapid early release cycle.
- 2021: 0.6.x releases continued cross-platform packaging.
- 2022: v0.8.x shipped as the project matured.
- 2025: v0.9.x releases refreshed the package after a quieter period.

### Related projects

- df is the direct command-line ancestor and comparison point.
- ncdu is adjacent in disk-usage inspection, but duf focuses on mounted filesystem summaries rather than interactive directory analysis.
- Other modern CLI rewrites, such as dust and dua-cli, occupy nearby disk-usage territory.

### Sources

- <https://github.com/muesli/duf>
- <https://api.github.com/repos/muesli/duf/releases?per_page=100>
- <https://formulae.brew.sh/formula/duf>


## 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:** duf
- **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 - duf - 0.8.1-2+b9: normalized package name match | Debian stable package indexes: duf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Disk Usage/Free Utility | https://github.com/muesli/duf
- Nix - duf: normalized package name match | nixpkgs package indexes: pkgs/by-name/du/duf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - duf - 0.8.1-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: duf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Disk Usage/Free Utility | https://github.com/muesli/duf
- apk - duf - 0.9.1-r8: normalized package name match | Alpine Linux edge package indexes: duf from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Disk Usage/Free Utility | https://github.com/muesli/duf
- apk - duf-doc - 0.9.1-r8: normalized package name match | Alpine Linux edge package indexes: duf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Disk Usage/Free Utility (documentation) | https://github.com/muesli/duf
- dnf - duf - 0.9.1-3.fc44: normalized package name match | Fedora Rawhide package metadata: duf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Disk Usage/Free Utility - a better 'df' alternative | https://github.com/muesli/duf
- pacman - duf - 0.9.1-1: normalized package name match | Arch Linux sync databases: duf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Disk Usage/Free Utility | https://github.com/muesli/duf
- zypper - duf - 0.9.1-1.4: normalized package name match | openSUSE Tumbleweed package metadata: duf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Disk Usage/Free Utility | https://github.com/muesli/duf
- MacPorts - duf: normalized package name match | MacPorts ports tree: sysutils/duf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/duf: normalized package name match | Scoop official bucket manifest trees: bucket/duf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - muesli.duf: normalized package name match | Windows Package Manager source index: muesli.duf 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.
- [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.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [dfc](https://www.automicvault.com/pkg/brew/dfc/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, monitoring, system.
- [agedu](https://www.automicvault.com/pkg/brew/agedu/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, system.
- [diskonaut](https://www.automicvault.com/pkg/brew/diskonaut/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, system.
- [diskus](https://www.automicvault.com/pkg/brew/diskus/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, system.
- [dua-cli](https://www.automicvault.com/pkg/brew/dua-cli/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, system.
- [duc](https://www.automicvault.com/pkg/brew/duc/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, system.
- [dysk](https://www.automicvault.com/pkg/brew/dysk/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, system.
- [erdtree](https://www.automicvault.com/pkg/brew/erdtree/) - Shares av.db curated category or tags: cli, disk-usage, filesystem, system.

## Combined YAML source

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