# 使用 Homebrew, MacPorts, Nix 安装 as-tree

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

## 安装

```sh
sudo av install brew:as-tree
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install as-tree
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install as-tree
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#as-tree
```

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

## 软件包事实

- **软件包键:** brew:as-tree
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/as-tree>
- **版本:** 0.12.0
- **来源摘要:** Print a list of paths as a tree of paths
- **主页:** <https://github.com/jez/as-tree>
- **仓库:** <https://github.com/jez/as-tree>
- **上游文档:** <https://github.com/jez/as-tree#readme>
- **许可证:** BlueOak-1.0.0
- **源码归档:** <https://github.com/jez/as-tree/archive/refs/tags/0.12.0.tar.gz>
- **已生成:** 2026-07-26T07:20:29+00:00

## 可执行文件

- as-tree (cli)
- as-tree (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

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

as-tree is a small Rust command-line filter that reads paths from a file or stdin and prints them as a tree. It complements path producers such as `find` and `fd` rather than replacing them.

### 项目历史

The public repository was created in May 2020, with initial GitHub releases published the same month. The README states that the tool was inspired by a feature request in `fd`, and that it builds under both Cargo and Bazel.

Its README is deliberately narrow: pass a list of paths in, get a tree display out. Development notes document Bazel-based tests and fixture files, while installation notes point to pre-built releases, Cargo, and source builds.

### 采用历史

The provided package-manager facts list Homebrew, MacPorts, and Nix, which is a strong adoption signal for a tiny CLI filter. GitHub repository metadata reported hundreds of stars at research time.

The tool's adoption niche is among users who already compose shell pipelines. Instead of adding complex filtering options to `tree`, it lets `find` or `fd` decide what paths exist and uses `as-tree` only for presentation.

### 使用方式

Common usage is `find . -name '*.txt' | as-tree` or `fd --exclude test | as-tree`. The CLI can also read a filename argument, print full path prefixes with `-f`, and control color with `--color always|auto|never`.

Because it is a filter, it fits neatly into scripts and aliases where users want `tree`-like output after a more expressive file search.

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

as-tree is package-nerd candy because it does one thing that Unix pipelines want: transform line-oriented path streams into tree-shaped output. It is also a small Rust utility that ships through multiple package managers despite a minimal feature set.

The contrast with `tree` is the point: no large option surface is needed when existing tools already produce the right list.

### 时间线

- 2020: Public GitHub repository created.
- 2020: 0.9.0 through 0.12.0 GitHub releases published in May.

### Related projects

- The README explicitly relates as-tree to `tree`, `find`, and `fd`, and cites the fd feature request that inspired it.

### 来源

- <https://api.github.com/repos/jez/as-tree>
- <https://api.github.com/repos/jez/as-tree/releases>
- <https://github.com/jez/as-tree>
- <https://raw.githubusercontent.com/jez/as-tree/master/README.md>
- source_facts.package-manager


## 安全说明

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:** as-tree
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - as-tree: normalized package name match | nixpkgs package indexes: pkgs/by-name/as/as-tree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - as-tree: normalized package name match | MacPorts ports tree: sysutils/as-tree/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [broot](https://www.automicvault.com/zh-hans/pkg/brew/broot/) - Shares av.db curated category or tags: cli, developer-tools, filesystem.
- [lndir](https://www.automicvault.com/zh-hans/pkg/brew/lndir/) - Shares av.db curated category or tags: cli, developer-tools, filesystem.
- [nfd2nfc](https://www.automicvault.com/zh-hans/pkg/brew/nfd2nfc/) - Shares av.db curated category or tags: cli, developer-tools, filesystem.
- [fclones](https://www.automicvault.com/zh-hans/pkg/brew/fclones/) - Shares av.db curated category or tags: cli, developer-tools, filesystem, rust.
- [physfs](https://www.automicvault.com/zh-hans/pkg/brew/physfs/) - Shares av.db curated category or tags: cli, developer-tools, filesystem.
- [uutils-findutils](https://www.automicvault.com/zh-hans/pkg/brew/uutils-findutils/) - Shares av.db curated category or tags: cli, developer-tools, filesystem, rust.
- [action-validator](https://www.automicvault.com/zh-hans/pkg/brew/action-validator/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [add-determinism](https://www.automicvault.com/zh-hans/pkg/brew/add-determinism/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [cargo-about](https://www.automicvault.com/zh-hans/pkg/brew/cargo-about/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, list, rust.

## Combined YAML source

View the package source record on GitHub. [combined/as-tree.yml](https://github.com/automic-vault/db/blob/main/combined/as-tree.yml)


## 来源

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