# Installer tre-command avec Homebrew, apt, Nix, scoop, winget, apk, dnf, MacPorts, pacman, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de tre-command pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:tre-command
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install tre-command
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tre
```

  Preuve: MacPorts ports tree: devel/tre/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install tre-command
```

  Preuve: Debian stable package indexes: tre-command from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#tre-command
```

  Preuve: nixpkgs package indexes: pkgs/by-name/tr/tre-command/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- apk (92%):

```sh
sudo apk add tre
```

  Preuve: Alpine Linux edge package indexes: tre from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install tre
```

  Preuve: Fedora Rawhide package metadata: tre from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S tre
```

  Preuve: Arch Linux sync databases: tre from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install agrep
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/tre-command
```

  Preuve: Scoop official bucket manifest trees: bucket/tre-command.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id duan.tre -e
```

  Preuve: Windows Package Manager source index: duan.tre from https://cdn.winget.microsoft.com/cache/source.msix

## Faits du paquet

- **Clé du paquet:** brew:tre-command
- **Gestionnaire de paquets:** Homebrew
- **Version:** 0.4.0
- **Résumé source:** Tree command, improved
- **Page d'accueil:** <https://github.com/dduan/tre>
- **Dépôt:** <https://github.com/dduan/tre>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- tre (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 0.4.0
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Debian apt - tre-command - 0.4.0-7+b1: normalized package name match | Debian stable package indexes: tre-command from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tree command, improved | https://github.com/dduan/tre
- Nix - tre-command: normalized package name match | 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 apt - tre-command - 0.4.0-5: normalized package name match | Ubuntu 24.04 LTS package indexes: tre-command from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tree command, improved | https://github.com/dduan/tre
- Scoop - main/tre-command: normalized package name match | Scoop official bucket manifest trees: bucket/tre-command.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - duan.tre: normalized package name match | Windows Package Manager source index: duan.tre from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - tre: installed executable or alias match | MacPorts ports tree: devel/tre/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - libtre-dev - 0.9.0-1: installed executable or alias match | Debian stable package indexes: libtre-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development package for the libtre5 regexp matching library | https://laurikari.net/tre/
- Debian apt - libtre5 - 0.9.0-1: installed executable or alias match | Debian stable package indexes: libtre5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | regexp matching library with approximate matching | https://laurikari.net/tre/
- Debian apt - tre-agrep - 0.9.0-1: installed executable or alias match | Debian stable package indexes: tre-agrep from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | approximate grep utility based on the tre library | https://laurikari.net/tre/
- Nix - tre: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/tr/tre/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libtre-dev - 0.8.0-7: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libtre-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | development package for the libtre5 regexp matching library | https://laurikari.net/tre/
- Ubuntu apt - libtre5 - 0.8.0-7: installed executable or alias match | Ubuntu 24.04 LTS package indexes: libtre5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | regexp matching library with approximate matching | https://laurikari.net/tre/
- Ubuntu apt - tre-agrep - 0.8.0-7: installed executable or alias match | Ubuntu 24.04 LTS package indexes: tre-agrep from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | approximate grep utility based on the tre library | https://laurikari.net/tre/
- apk - agrep - 0.8.0-r2: installed executable or alias match | Alpine Linux edge package indexes: agrep from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | approximate grepping | https://laurikari.net/tre
- apk - agrep-doc - 0.8.0-r2: installed executable or alias match | Alpine Linux edge package indexes: agrep-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | POSIX compliant regexp matching library (documentation) | https://laurikari.net/tre
- apk - tre - 0.8.0-r2: installed executable or alias match | Alpine Linux edge package indexes: tre from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | POSIX compliant regexp matching library | https://laurikari.net/tre


## Combined YAML source

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


## Sources

- 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
