# Install pstree with Homebrew, apk, MacPorts, Nix

Show ps output as a tree. Version 2.40 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#pstree.

## 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
- **Version:** 2.40
- **Source summary:** Show ps output as a tree
- **Homepage:** <https://github.com/FredHucht/pstree>
- **Repository:** <https://github.com/FredHucht/pstree>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- pstree (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.40

## Security Notes

narrow executable package without higher-risk signals.

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

## 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


## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
