pkg.soopen package index

brew / 排名 4698

使用 Homebrew, apt, Nix, scoop, winget, apk, dnf, MacPorts, pacman, zypper 安装 tre-command

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install tre-command

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install tre

MacPorts ports tree · devel/tre/Portfile · 来源: api.github.com

Linux

Debian apt已验证 · 92%
sudo apt install tre-command

Debian stable package indexes · tre-command · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#tre-command

nixpkgs package indexes · pkgs/by-name/tr/tre-command/package.nix · 来源: api.github.com

Alpine Linux apk已验证 · 92%
sudo apk add tre

Alpine Linux edge package indexes · tre · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install tre

Fedora Rawhide package metadata · tre · 来源: dl.fedoraproject.org

Arch Linux pacman已验证 · 92%
sudo pacman -S tre

Arch Linux sync databases · tre · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install agrep

openSUSE Tumbleweed package metadata · agrep · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/tre-command

Scoop official bucket manifest trees · bucket/tre-command.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id duan.tre -e

Windows Package Manager source index · duan.tre · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Tree command, improved

命令和别名

  • tre

历史

项目历史与用法

tre-command is the packaged name for `tre`, Daniel Duan's Rust command-line directory tree lister. The official README describes it as a modern alternative to `tree` that respects `.gitignore`, uses colors compatible with LS_COLORS, can emit JSON, and can create editor-opening shell aliases for listed files.

项目历史

The project modernizes the classic `tree` workflow for source-code directories. Its README puts Git-awareness first: in repositories, tre skips ignored files by default instead of showing generated or vendor files that developers usually do not want in a structural listing.

The standout feature is editor aliasing. With the `-e` option and small shell setup, tre writes temporary aliases like `e8` that open the numbered file shown in the tree output. The README documents setup for Bash, Zsh, Fish, PowerShell, and Command Prompt, showing that the project treats listing and navigation as one workflow.

采用历史

The README documents wide package-manager distribution under names such as `tre-command`, `tre-tree`, and `tre`: Homebrew on macOS, MacPorts, Debian testing, Scoop, Windows Package Manager, Cargo, AUR, pkgsrc, Nixpkgs, and Nix flakes. The batch input records additional package-manager mappings for Homebrew, MacPorts, Nix, pacman, Scoop, Ubuntu, and winget.

This adoption pattern reflects a common packaging issue: the executable is `tre`, but package managers sometimes avoid name collisions by shipping it as `tre-command`.

使用方式

Users run `tre [OPTIONS] [PATH]` to list a directory tree. Options include showing hidden files, listing only directories, excluding regex patterns, limiting depth, emitting JSON, controlling color, bypassing gitignore behavior with simple mode, and generating editor aliases.

The package is especially useful in codebases where classic `tree` output is too noisy. By honoring `.gitignore` and LS_COLORS and by supporting JSON output, it fits both interactive terminal browsing and scripting.

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

For package nerds, tre-command is a tidy example of a Rust rewrite that earns its packaging slot by adding source-control-aware defaults and shell integration, not merely by reimplementing an older Unix command.

Its package-manager matrix matters because users often install tree-like utilities everywhere: laptops, CI images, Windows dev environments, and Nix shells. The formula name `tre-command` also documents the ecosystem's need to disambiguate package names.

时间线

  • 0.0.1: Earliest public tag visible in the official Git repository tag list.
  • 0.3.x: Tag series shows continued iteration after the initial releases.
  • 2020s: README documents Homebrew, MacPorts, Debian testing, Scoop, winget, Cargo, AUR, pkgsrc, Nixpkgs, and Nix flake installation.

Related projects

  • Related to the classic Unix `tree` command.
  • Related to gitignore-aware file discovery tools that keep generated or ignored paths out of developer-facing output.
  • The README points users who like editor aliasing to the related `ea` project.

来源

  • Batch input fields: source_facts.executables, source_facts.package-manager
  • Official Git tag list: https://github.com/dduan/tre/tags
  • Official README: https://github.com/dduan/tre#readme

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
tre可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本0.4.0
管理器更新时间
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:tre-command
版本0.4.0
软件包管理器Homebrew
主页https://github.com/dduan/tre
仓库https://github.com/dduan/tre
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

tre-command 0.4.0-7+b1

Tree command, improved

https://github.com/dduan/tre

sudo apt install tre-command
  • Section: utils
  • Architecture: amd64
  • Source Package: rust-tre-command
  • 2 依赖
  • normalized package name match
  • 匹配方式:Tre Command
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tre-command from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

tre-command

nix profile install nixpkgs#tre-command
  • normalized package name match
  • 匹配方式:Tre Command
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/tr/tre-command/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

tre-command 0.4.0-5

Tree command, improved

https://github.com/dduan/tre

sudo apt install tre-command
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: rust-tre-command
  • 2 依赖
  • normalized package name match
  • 匹配方式:Tre Command
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: tre-command from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Scoop95%

main/tre-command

scoop install main/tre-command
  • normalized package name match
  • 匹配方式:Tre Command
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/tre-command.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

duan.tre

winget install --id duan.tre -e
  • normalized package name match
  • 匹配方式:Tre Command
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: duan.tre from https://cdn.winget.microsoft.com/cache/source.msix
MacPorts94%

tre

sudo port install tre
  • installed executable or alias match
  • 匹配方式:Tre
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/tre/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

libtre-dev 0.9.0-1

development package for the libtre5 regexp matching library

https://laurikari.net/tre/

sudo apt install libtre-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: tre
  • 1 依赖
  • installed executable or alias match
  • 匹配方式:Tre
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libtre-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

libtre5 0.9.0-1

regexp matching library with approximate matching

https://laurikari.net/tre/

sudo apt install libtre5
  • Section: libs
  • Architecture: amd64
  • Source Package: tre
  • 1 依赖
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:Tre
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libtre5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

tre-agrep 0.9.0-1

approximate grep utility based on the tre library

https://laurikari.net/tre/

sudo apt install tre-agrep
  • Section: text
  • Architecture: amd64
  • Source Package: tre
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:Tre
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tre-agrep from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

tre

nix profile install nixpkgs#tre
  • installed executable or alias match
  • 匹配方式:Tre
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/tr/tre/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

libtre-dev 0.8.0-7

development package for the libtre5 regexp matching library

https://laurikari.net/tre/

sudo apt install libtre-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: tre
  • 1 依赖
  • installed executable or alias match
  • 匹配方式:Tre
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libtre-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt92%

libtre5 0.8.0-7

regexp matching library with approximate matching

https://laurikari.net/tre/

sudo apt install libtre5
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: tre
  • 1 依赖
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:Tre
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libtre5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt92%

tre-agrep 0.8.0-7

approximate grep utility based on the tre library

https://laurikari.net/tre/

sudo apt install tre-agrep
  • Section: universe/text
  • Architecture: amd64
  • Source Package: tre
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:Tre
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: tre-agrep from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk92%

agrep 0.8.0-r2

approximate grepping

https://laurikari.net/tre

sudo apk add agrep
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: tre
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Tre
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: agrep from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

agrep-doc 0.8.0-r2

POSIX compliant regexp matching library (documentation)

https://laurikari.net/tre

sudo apk add agrep-doc
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: tre
  • installed executable or alias match
  • 匹配方式:Tre
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: agrep-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

tre 0.8.0-r2

POSIX compliant regexp matching library

https://laurikari.net/tre

sudo apk add tre
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: tre
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Tre
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tre from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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