# 使用 Homebrew, Nix 安装 dutree

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

## 安装

```sh
sudo av install brew:dutree
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dutree
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dutree
```

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

## 软件包事实

- **软件包键:** brew:dutree
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dutree>
- **版本:** 0.2.18
- **来源摘要:** Tool to analyze file system usage written in Rust
- **主页:** <https://github.com/nachoparker/dutree>
- **仓库:** <https://github.com/nachoparker/dutree>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://github.com/nachoparker/dutree/archive/refs/tags/v0.2.18.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dutree (cli)
- dutree (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.2.18
- 本地数据: OK
- 上游仓库: https://github.com/nachoparker/dutree
- 检测到的最新版本: v0.2.18 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

dutree is a Rust command-line disk-usage analyzer that prints a colored filesystem tree. It appeared during the same Rust CLI wave as tools like dust, but kept a simpler tree-and-aggregation focus.

### 项目历史

The GitHub repository was created in March 2018 and the crates.io package followed in April 2018. The README describes dutree as fast, written in Rust, able to display a filesystem tree, aggregate small files, exclude paths, compare directories, and use LS_COLORS for colored output.

GitHub releases show early compatibility work in 2018, including a v0.2.7 release described as compatible with macOS, followed by minor fixes through v0.2.15 in November 2019.

### 采用历史

The official README documents installation through Cargo, standalone Linux release binaries, Arch's AUR, and Fedora's repositories. That is modest but meaningful adoption for a focused filesystem utility.

### 使用方式

Users run `dutree [options] <path>` with flags for depth, aggregation thresholds, summaries, real disk usage, bytes output, files-only mode, exclusions, hidden-file handling, and ASCII-only output.

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

dutree is notable as an early packaged Rust answer to `du` plus `tree`: less interactive than ncdu, more structured than plain `du`, and small enough to be carried by package managers for users who want a quick terminal overview.

### 时间线

- 2018-03-25: GitHub repository created.
- 2018-04-16: `dutree` crate created on crates.io.
- 2018-05-10: v0.2.7 release published with macOS compatibility noted.
- 2019-11-18: v0.2.15 release published.

### Related projects

- The dust README lists dutree among alternatives in the disk-usage-inspection space, alongside ncdu, dua, pdu, dirstat-rs, and shell pipelines built from `du`, `sort`, and `head`.

### 来源

- <https://github.com/nachoparker/dutree>
- <https://api.github.com/repos/nachoparker/dutree>
- <https://crates.io/crates/dutree>
- <https://api.github.com/repos/nachoparker/dutree/releases>
- <https://github.com/bootandy/dust#readme>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dutree
- **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

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

- Nix - dutree: normalized package name match | nixpkgs package indexes: pkgs/by-name/du/dutree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [dust](https://pkg.so/zh-hans/brew/dust/) - Shares pkgdb curated category or tags: cli, disk-usage, file-management, filesystem, rust.
- [rnr](https://pkg.so/zh-hans/brew/rnr/) - Shares pkgdb curated category or tags: cli, file-management, filesystem, rust, system.
- [fcp](https://pkg.so/zh-hans/brew/fcp/) - Shares pkgdb curated category or tags: cli, file-management, filesystem, rust, system.
- [rmrfrs](https://pkg.so/zh-hans/brew/rmrfrs/) - Shares pkgdb curated category or tags: cli, file-management, filesystem, rust, system.
- [eza](https://pkg.so/zh-hans/brew/eza/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.
- [lsd](https://pkg.so/zh-hans/brew/lsd/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.
- [findutils](https://pkg.so/zh-hans/brew/findutils/) - Shares pkgdb curated category or tags: cli, file-management, filesystem, system.
- [dua-cli](https://pkg.so/zh-hans/brew/dua-cli/) - Shares pkgdb curated category or tags: cli, disk-usage, filesystem, rust, system.
- [erdtree](https://pkg.so/zh-hans/brew/erdtree/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, disk, disk-usage, file, filesystem.

## Combined YAML source

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


## 来源

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