# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, scoop 安装 diskus

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

## 安装

```sh
sudo av install brew:diskus
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install diskus
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install diskus
```

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

### Linux

- apk (92%):

```sh
sudo apk add diskus
```

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

- dnf (92%):

```sh
sudo dnf install diskus
```

  证据: Fedora Rawhide package metadata: diskus 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#diskus
```

  证据: nixpkgs package indexes: pkgs/by-name/di/diskus/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S diskus
```

  证据: Arch Linux sync databases: diskus from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install extras/diskus
```

  证据: Scoop official bucket manifest trees: bucket/diskus.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:diskus
- **软件包管理器:** Homebrew
- **版本:** 0.9.0
- **来源摘要:** Minimal, fast alternative to 'du -sh'
- **主页:** <https://github.com/sharkdp/diskus>
- **仓库:** <https://github.com/sharkdp/diskus>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- diskus (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

diskus is a Rust command-line utility positioned as a minimal, fast alternative to `du -sh`. It computes the total size of the current directory and focuses on doing that one job quickly, with benchmark comparisons against `du` and other Rust disk-usage tools in the upstream README.

### 项目历史

The GitHub repository was created in November 2018, and release tags started the same month. Later releases continued through 2025, showing a small but maintained utility rather than a one-off experiment.

### 采用历史

The README documents installation through release packages, Arch, Void, Homebrew, MacPorts, Haiku, NixOS, and Cargo. That mix is typical for sharkdp-style Rust CLIs: useful as standalone binaries, but also easy for distribution maintainers to carry because the behavior is simple and the upstream packaging story is clear.

### 使用方式

The usual workflow is simply running `diskus` in a directory to print a human-readable total and byte count. The README also documents disk-usage versus apparent-size behavior and directory counting semantics so users can reason about differences from `du`.

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

diskus is interesting because it deliberately resists becoming a full disk browser. Its package appeal is the opposite of feature accumulation: a fast, parallelized `du -sh` replacement that complements richer tools such as `dust`.

### 时间线

- 2018-11: GitHub repository created
- 2018-11: early 0.3.x and 0.5.0 releases published
- 2025-12: v0.9.0 release published

### Related projects

- The upstream README compares diskus with `du`, `tin-summer`, and `dust`, and uses `hyperfine` for benchmark runs.

### 来源

- <https://github.com/sharkdp/diskus>
- <https://api.github.com/repos/sharkdp/diskus>
- <https://github.com/sharkdp/diskus/releases/tag/v0.3.0>
- <https://github.com/sharkdp/diskus/releases/tag/v0.9.0>
- <https://formulae.brew.sh/formula/diskus>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - diskus: normalized package name match | nixpkgs package indexes: pkgs/by-name/di/diskus/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - diskus - 0.8.0-r0: normalized package name match | Alpine Linux edge package indexes: diskus from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | fast alternative for du | https://github.com/sharkdp/diskus
- dnf - diskus - 0.9.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: diskus from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Minimal, fast alternative to 'du -sh' | https://crates.io/crates/diskus
- pacman - diskus - 0.9.0-2: normalized package name match | Arch Linux sync databases: diskus from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Minimal, fast alternative to 'du -sh' | https://github.com/sharkdp/diskus
- MacPorts - diskus: normalized package name match | MacPorts ports tree: sysutils/diskus/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/diskus: normalized package name match | Scoop official bucket manifest trees: bucket/diskus.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## 相关链接

- [diskus](https://pkg.so/zh-hans/pkg/cargo/diskus/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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