# 使用 Homebrew, Nix, pacman, zypper, scoop, winget, MacPorts 安装 erdtree

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

## 安装

```sh
sudo av install brew:erdtree
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install erdtree
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install erd
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#erdtree
```

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

- pacman (92%):

```sh
sudo pacman -S erdtree
```

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

- zypper (92%):

```sh
sudo zypper install erdtree
```

  证据: openSUSE Tumbleweed package metadata: erdtree from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/erdtree
```

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

- winget (92%):

```sh
winget install --id Solidiquis.Erdtree -e
```

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

## 软件包事实

- **软件包键:** brew:erdtree
- **软件包管理器:** Homebrew
- **版本:** 3.1.2
- **来源摘要:** Multi-threaded file-tree visualizer and disk usage analyzer
- **主页:** <https://github.com/solidiquis/erdtree>
- **仓库:** <https://github.com/solidiquis/erdtree>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- erd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

erdtree, installed as `erd`, is a Rust filesystem tree viewer and disk-usage analyzer. Its README positions it as a cross-platform, multi-threaded blend of `du`, `tree`, `find`, `wc`, and `ls`.

### 项目历史

The official repository was created in 2022 and reached a 1.0 GitHub release in 2023. The project is part of the modern wave of Rust replacements and hybrids for classic Unix command-line utilities, with attention to Git ignore rules, colored output, icons, multiple layout modes, and parallel traversal.

### 采用历史

Adoption is package-manager driven: the input facts list Homebrew, MacPorts, Nix, Arch, Scoop, winget, and zypper packages. That spread matches the project's cross-platform claim and its appeal as a workstation utility rather than a server daemon or library.

### 使用方式

Users run `erd` against a directory to inspect file trees and disk usage. The README documents options for logical or physical sizes, line and word counts, long metadata views, glob or regex filtering, depth limits, sorting, icons, Git ignore behavior, thread counts, and one-filesystem traversal.

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

erdtree matters to command-line tool collectors because it combines several familiar Unix inspection patterns into one packaged binary. It is also a neat packaging case: one Rust crate surfaces as a cross-platform CLI with shell completions, config files, and operating-system-specific filesystem behavior.

### 时间线

- 2022: The GitHub repository was created.
- 2023: Version 1.0 was published on GitHub releases.
- 2020s: Packages appear across Unix-like and Windows package managers according to the supplied package-manager facts.

### Related projects

- erdtree is explicitly compared with `tree`, `du`, `find`, `wc`, `ls`, exa, dua, dust, and fd in its README.

### 来源

- <https://github.com/solidiquis/erdtree>
- <https://github.com/solidiquis/erdtree/releases>
- <https://api.github.com/repos/solidiquis/erdtree>


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $ERDTREE_TOML_PATH, $XDG_CONFIG_HOME/erdtree/.erdtree.toml, $XDG_CONFIG_HOME/.erdtree.toml, ~/.config/erdtree/.erdtree.toml, ~/.erdtree.toml, $ERDTREE_CONFIG_PATH, $XDG_CONFIG_HOME/erdtree/.erdtreerc, $XDG_CONFIG_HOME/.erdtreerc, ~/.config/erdtree/.erdtreerc, ~/.erdtreerc
- Windows: %APPDATA%\erdtree\.erdtree.toml, %APPDATA%\erdtree\.erdtreerc
## 其他软件包管理器记录

- Nix - erdtree: normalized package name match | nixpkgs package indexes: pkgs/by-name/er/erdtree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - erdtree - 3.1.2-3: normalized package name match | Arch Linux sync databases: erdtree from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A multi-threaded filesystem and disk-usage analysis tool | https://github.com/solidiquis/erdtree
- zypper - erdtree - 3.1.2~0-2.8: normalized package name match | openSUSE Tumbleweed package metadata: erdtree from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A multi-threaded file-tree visualizer and disk usage analyzer | https://github.com/solidiquis/erdtree
- Scoop - main/erdtree: normalized package name match | Scoop official bucket manifest trees: bucket/erdtree.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Solidiquis.Erdtree: normalized package name match | Windows Package Manager source index: Solidiquis.Erdtree from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - erd: installed executable or alias match | MacPorts ports tree: textproc/erd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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