# tree mit Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für tree in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install tree
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tree
```

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

### Linux

- apk (92%):

```sh
sudo apk add tree
```

  Evidenz: Alpine Linux edge package indexes: tree from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install tree
```

  Evidenz: Debian stable package indexes: tree from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install tree
```

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

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S tree
```

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

- zypper (92%):

```sh
sudo zypper install tree
```

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

### Windows

- Chocolatey (92%):

```sh
choco install tree
```

  Evidenz: Chocolatey community package catalog: tree from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','trafficlight-chrome'

## Paketfakten

- **Paketschlüssel:** brew:tree
- **Paketmanager:** Homebrew
- **Version:** 2.3.2
- **Quellzusammenfassung:** Display directories as trees (with optional color/HTML output)
- **Homepage:** <https://oldmanprogrammer.net/source.php?dir=projects/tree>
- **Repository:** <https://github.com/Old-Man-Programmer/tree>
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- tree (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 2.3.2
## Projektgeschichte und Nutzung

tree is the classic Unix-style command that prints directory contents as an indented tree, with options for color, filtering, metadata, and machine-readable output.

### Projektgeschichte

Steve Baker's README describes tree as a handy utility he had written earlier to display a directory tree and later released after adding color support. The man page identifies the program as copyright 1996-2026 and describes it as listing directory contents in a tree-like format.

The command grew by accretion in the Unix tradition. Early releases added filtering, modification-time sorting, ownership display, dircolors support, ANSI line drawing, HTML output, output redirection, depth limits, recursive HTML generation, portability fixes, and symlink handling.

Later releases made tree more useful for scripts and modern repositories: XML output, JSON output, UTF-8 handling, file-size sorting, gitignore support, NO_COLOR support, hyperlink output, from-file modes, ACL/SELinux display, and extensive portability fixes across Linux, macOS, Solaris, Cygwin, OS/2, HP NonStop, and other systems.

### Adoptionsgeschichte

tree became one of those small commands many users expect even though it is not part of every base system. Its broad package-manager presence reflects that: Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, Chocolatey, and others package a compatible `tree` executable.

Its adoption is driven less by a framework ecosystem than by muscle memory: README examples, dotfile screenshots, CI diagnostics, support tickets, and filesystem explanations often become easier once a directory hierarchy can be pasted as text.

### Wie es verwendet wird

Common use is simply `tree` or `tree DIR`, with options such as `-L` for depth, `-a` for hidden files, `-d` for directories only, `-I` or `-P` for filtering, `-J` for JSON, `-X` for XML, and `-H` for HTML.

In package-nerd culture, tree is both a diagnostic tool and a packaging sanity check: after install, after build, or inside a fixture, it gives a compact visual proof of what files landed where.

### Warum Paket-Nerds sich dafür interessieren

tree is significant because it turns filesystem shape into a stable text artifact. That makes it unusually useful in package recipes, bug reports, documentation, and tests where `find` is correct but hard to read.

### Zeitleiste

- 1996: Man page copyright range begins, matching the early public life of the Unix tree utility.
- 1997: version 1.2 adds date sorting, ignore patterns, name display controls, ownership output, and fuller dircolors support.
- 1999: version 1.3 adds HTML output, output redirection, depth limits, portability work, and symlink fixes.
- 2004: version 1.5.0 adds locale/UTF-8 work, OS/2 support, charset options, and switches license text to GPLv2.
- 2014: version 1.7.0 adds JSON output and more sorting and matching options.
- 2021: version 2.0.0 adds gitignore support and refactors output handling.
- 2026: version 2.3.2 continues portability and output fixes.

### Related projects

- tree overlaps with `find`, `ls`, `du`, and `git status --ignored`, but optimizes for readable hierarchy output rather than exhaustive query language.
- Its HTML, XML, and JSON modes made it useful beyond interactive terminal browsing.

### Quellen

- <https://github.com/Old-Man-Programmer/tree>
- <https://raw.githubusercontent.com/Old-Man-Programmer/tree/master/CHANGES>
- <https://raw.githubusercontent.com/Old-Man-Programmer/tree/master/README>
- <https://raw.githubusercontent.com/Old-Man-Programmer/tree/master/doc/tree.1>


## Sicherheitshinweise

doc example: narrow filesystem listing tool.

- **Geiger-Risiko:** grün / hoch
- doc example: narrow filesystem listing tool

## Andere Paketmanager-Einträge

- Debian apt - tree - 2.2.1-1: normalized package name match | Debian stable package indexes: tree from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | displays an indented directory tree, in color | http://oldmanprogrammer.net/source.php?dir=projects/tree
- Nix - tree: normalized package name match | nixpkgs package indexes: pkgs/by-name/tr/tree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - tree - 2.1.1-2ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: tree from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | displays an indented directory tree, in color | http://oldmanprogrammer.net/source.php?dir=projects/tree
- apk - tree - 2.3.2-r0: normalized package name match | Alpine Linux edge package indexes: tree from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Recursive directory indented listing of files | https://oldmanprogrammer.net/source.php?dir=projects/tree
- apk - tree-doc - 2.3.2-r0: normalized package name match | Alpine Linux edge package indexes: tree-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Recursive directory indented listing of files (documentation) | https://oldmanprogrammer.net/source.php?dir=projects/tree
- dnf - tree - 2.3.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: tree from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | File system tree viewer | https://oldmanprogrammer.net/source.php?dir=projects/tree
- pacman - tree - 2.3.2-1: normalized package name match | Arch Linux sync databases: tree from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A directory listing program displaying a depth indented list of files | https://gitlab.com/OldManProgrammer/unix-tree
- zypper - tree - 2.3.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: tree from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | File listing as a tree | https://oldmanprogrammer.net/tar/tree/
- MacPorts - tree: normalized package name match | MacPorts ports tree: sysutils/tree/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - tree: normalized package name match | Chocolatey community package catalog: tree from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','trafficlight-chrome'


## Combined YAML source

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


## Quellen

- 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
