Automic VaultAutomic Vault

brew

Install tre-command with Homebrew, apt, Nix, scoop, winget, apk, dnf, MacPorts, pacman, zypper

Tree command, improved. Version 0.4.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install tre-command

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install tre

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

Linux

Debian aptverified · 92%
sudo apt install tre-command

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

Nixverified · 92%
nix profile install nixpkgs#tre-command

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

Alpine Linux apkverified · 92%
sudo apk add agrep

Alpine Linux edge package indexes · agrep · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install agrep

Fedora Rawhide package metadata · agrep · source: dl.fedoraproject.org

Arch Linux pacmanverified · 92%
sudo pacman -S tre

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

openSUSE zypperverified · 92%
sudo zypper install agrep

openSUSE Tumbleweed package metadata · agrep · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/tre-command

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

Windows Package Managerverified · 92%
winget install --id duan.tre -e

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

overview

Package summary

Tree command, improved

Commands and aliases

  • tre

history

Project history and usage

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.

Project history

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.

Adoption history

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`.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

Sources

  • 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

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
trecliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.4.0
manager updated
local dataok
upstreamcurrent
latest detectedv0.4.0

https://github.com/dduan/tre

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:tre-command
Version0.4.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/tre-command
Homepagehttps://github.com/dduan/tre
Repositoryhttps://github.com/dduan/tre
Upstream docshttps://github.com/dduan/tre#readme
LicenseMIT
Source archivehttps://github.com/dduan/tre/archive/refs/tags/v0.4.0.tar.gz
Build dependenciesrust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametre-command
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

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 dependencies
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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
  • Matched by: 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
  • Matched by: 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
  • Matched by: 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 dependencies
  • installed executable or alias match
  • Matched by: 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 dependencies
  • 1 optional deps
  • installed executable or alias match
  • Matched by: 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 dependencies
  • installed executable or alias match
  • Matched by: 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
  • Matched by: 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 dependencies
  • installed executable or alias match
  • Matched by: 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 dependencies
  • 1 optional deps
  • installed executable or alias match
  • Matched by: 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 dependencies
  • installed executable or alias match
  • Matched by: 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 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: 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
  • Matched by: 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 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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