macOS
brew install treelocal Homebrew formula metadata
sudo port install treeMacPorts ports tree · sysutils/tree/Portfile · ソース: api.github.com
brew
tree のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install treelocal Homebrew formula metadata
sudo port install treeMacPorts ports tree · sysutils/tree/Portfile · ソース: api.github.com
sudo apk add treeAlpine Linux edge package indexes · tree · ソース: dl-cdn.alpinelinux.org
sudo dnf install treeFedora Rawhide package metadata · tree · ソース: dl.fedoraproject.org
nix profile install nixpkgs#treenixpkgs package indexes · pkgs/by-name/tr/tree/package.nix · ソース: api.github.com
sudo pacman -S treeArch Linux sync databases · tree · ソース: geo.mirror.pkgbuild.com
sudo zypper install treeopenSUSE Tumbleweed package metadata · tree · ソース: download.opensuse.org
choco install treeChocolatey community package catalog · tree · ソース: community.chocolatey.org
概要
Display directories as trees (with optional color/HTML output)
履歴
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.
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.
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.
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.
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.
セキュリティ状態
doc example: narrow filesystem listing tool.
リスク グリーン · 信頼度 高 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
tree | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/Old-Man-Programmer/tree
インストールメタデータ
| パッケージキー | brew:tree |
|---|---|
| バージョン | 2.3.2 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/tree |
| ホームページ | https://oldmanprogrammer.net/source.php?dir=projects/tree |
| リポジトリ | https://github.com/Old-Man-Programmer/tree |
| 上流ドキュメント | https://github.com/Old-Man-Programmer/tree#readme |
| ライセンス | GPL-2.0-or-later |
| ソースアーカイブ | https://github.com/Old-Man-Programmer/tree/archive/refs/tags/2.3.2.tar.gz |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
tree 2.2.1-1
displays an indented directory tree, in color
http://oldmanprogrammer.net/source.php?dir=projects/tree
sudo apt install treetree
nix profile install nixpkgs#treetree 2.1.1-2ubuntu3
displays an indented directory tree, in color
http://oldmanprogrammer.net/source.php?dir=projects/tree
sudo apt install treetree 2.3.2-r0
Recursive directory indented listing of files
https://oldmanprogrammer.net/source.php?dir=projects/tree
sudo apk add treetree-doc 2.3.2-r0
Recursive directory indented listing of files (documentation)
https://oldmanprogrammer.net/source.php?dir=projects/tree
sudo apk add tree-doctree 2.3.1-1.fc45
File system tree viewer
https://oldmanprogrammer.net/source.php?dir=projects/tree
sudo dnf install treetree 2.3.2-1
A directory listing program displaying a depth indented list of files
https://gitlab.com/OldManProgrammer/unix-tree
sudo pacman -S treetree 2.3.2-1.1
File listing as a tree
https://oldmanprogrammer.net/tar/tree/
sudo zypper install treetree
sudo port install treetree
choco install treeソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.