# 使用 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
- **版本:** 0.2.18
- **来源摘要:** Tool to analyze file system usage written in Rust
- **主页:** <https://github.com/nachoparker/dutree>
- **仓库:** <https://github.com/nachoparker/dutree>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dutree (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
