# Install pstree

Show ps output as a tree. Version 2.40 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:pstree
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install pstree
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pstree
```

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

### Linux

- apk (92%):

```sh
sudo apk add pstree
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#pstree
```

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

## Package Facts

- **Package key:** brew:pstree
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/pstree>
- **Version:** 2.40
- **Source summary:** Show ps output as a tree
- **Homepage:** <https://github.com/FredHucht/pstree>
- **Repository:** <https://github.com/FredHucht/pstree>
- **Upstream docs:** <https://github.com/FredHucht/pstree#readme>
- **License:** GPL-3.0-only
- **Source archive:** <https://github.com/FredHucht/pstree/archive/refs/tags/v2.40.tar.gz>
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- pstree (cli)
- pstree (alias)

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 2.40
- Local data status: ok
- Upstream repository: https://github.com/FredHucht/pstree
- Upstream latest detected: v2.40 (current)
- info: No package-manager update timestamp was available.

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** pstree
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - pstree: normalized package name match | nixpkgs package indexes: pkgs/by-name/ps/pstree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - pstree - 2.40-r2: normalized package name match | Alpine Linux edge package indexes: pstree from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A small tool to list processes as a tree | https://github.com/FredHucht/pstree
- apk - pstree-doc - 2.40-r2: normalized package name match | Alpine Linux edge package indexes: pstree-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A small tool to list processes as a tree (documentation) | https://github.com/FredHucht/pstree
- MacPorts - pstree: normalized package name match | MacPorts ports tree: sysutils/pstree/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related Links

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [px](https://www.automicvault.com/zh-hans/pkg/brew/px/) - Shares av.db curated category or tags: cli, process-monitoring, ps, system, system-utility.
- [gops](https://www.automicvault.com/zh-hans/pkg/brew/gops/) - Shares av.db curated category or tags: cli, process-monitoring, processes, system.
- [libgtop](https://www.automicvault.com/zh-hans/pkg/brew/libgtop/) - Shares av.db curated category or tags: cli, process-monitoring, processes, system.
- [procs](https://www.automicvault.com/zh-hans/pkg/brew/procs/) - Shares av.db curated category or tags: cli, processes, ps, system.
- [psgrep](https://www.automicvault.com/zh-hans/pkg/brew/psgrep/) - Shares av.db curated category or tags: cli, processes, system, system-utility.
- [progress](https://www.automicvault.com/zh-hans/pkg/brew/progress/) - Shares av.db curated category or tags: cli, process-monitoring, system.
- [procps](https://www.automicvault.com/zh-hans/pkg/brew/procps/) - Shares av.db curated category or tags: cli, processes, ps, system.
- [lsof](https://www.automicvault.com/zh-hans/pkg/brew/lsof/) - Shares av.db curated category or tags: cli, processes, system.

## Sources

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