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

Disk Usage/Free Utility - a better 'df' alternative. Version 0.9.1 via Homebrew; verified 2026-07-25. Also installable with debian: sudo apt install duf.

## 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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
- **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>
- **Last updated:** 2026-07-25T14:21:58-04:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- duf (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.9.1
## 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

## 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-r9: 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-r9: 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-4.fc45: normalized package name match | Fedora Rawhide package metadata: duf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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.7: normalized package name match | openSUSE Tumbleweed package metadata: duf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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


## Combined YAML source

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


## Sources

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