# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 duf

查看 duf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install duf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install duf
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:duf
- **软件包管理器:** Homebrew
- **版本:** 0.9.1
- **来源摘要:** Disk Usage/Free Utility - a better 'df' alternative
- **主页:** <https://github.com/muesli/duf>
- **仓库:** <https://github.com/muesli/duf>
- **最后更新:** 2026-07-25T14:21:58-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- duf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.9.1
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- 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)


## 来源

- 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
