pkg.soopen package index

brew / 排名 1588

使用 Homebrew, apk, MacPorts, Nix 安装 pstree

查看 pstree 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install pstree

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install pstree

MacPorts ports tree · sysutils/pstree/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add pstree

Alpine Linux edge package indexes · pstree · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#pstree

nixpkgs package indexes · pkgs/by-name/ps/pstree/package.nix · 来源: api.github.com

概览

软件包摘要

Show ps output as a tree

命令和别名

  • pstree

历史

项目历史与用法

Fred Hucht's pstree is a portable Unix command that renders the process hierarchy as a tree and supports filtering by user, process ID, command text, and depth.

项目历史

Fred Hucht's pstree began as a shell script in the early 1990s. The first C version dates to 1992, and the source was managed in RCS from 1994. It was formerly distributed from the University of Duisburg-Essen through FTP and a project webpage; in 2022 the project moved to GitHub.

采用历史

The implementation was designed for portability across Unix systems. Its official README lists AIX, Linux, HP-UX, A/UX, SunOS, Solaris, BSD variants, and macOS among tested systems. The supplied metadata records current packaging in Homebrew, Alpine Linux, MacPorts, and Nix.

使用方式

pstree normally obtains process information from ps and displays parent-child relationships from PID 1 or selected process IDs. On Linux it can read /proc directly. Options filter branches by user, PID, or command text, limit depth, choose line-drawing characters, and request wide output.

为什么软件包爱好者会关心

This pstree is a compact example of a durable Unix utility migrating through successive distribution eras: shell script, portable C program, RCS-managed source, FTP and university-hosted releases, package-manager distribution, and finally GitHub. It remains useful because parent-child process relationships are often easier to diagnose as a tree than as a flat ps listing.

时间线

  • Early 1990s: pstree began as a shell script.
  • 1992: First C version.
  • 1994: Source management moved to RCS.
  • 2022: Project moved from its former university distribution sites to GitHub.

Related projects

  • ps supplies process data on most supported Unix systems.
  • Linux /proc is read directly by the Linux implementation path.
  • The similarly named pstree shipped by psmisc is a distinct implementation and should not be conflated with Fred Hucht's project.

来源

  • Official manual page: https://github.com/FredHucht/pstree/blob/main/pstree.1
  • Official project README: https://github.com/FredHucht/pstree#readme

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 12 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
pstreecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-09-19
管理器版本2.40
管理器更新时间2026-09-18
本地数据OK
上游当前
检测到的最新版本v2.40

https://github.com/FredHucht/pstree

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:pstree
版本2.40
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/pstree
主页https://github.com/FredHucht/pstree
仓库https://github.com/FredHucht/pstree
许可证GPL-3.0-only
源码归档https://github.com/FredHucht/pstree/archive/refs/tags/v2.40.tar.gz
最后更新2026-09-18T09:17:53+02:00
Pulseupdated
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepstree
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

pstree

nix profile install nixpkgs#pstree
  • normalized package name match
  • 匹配方式:Pstree
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ps/pstree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

pstree 2.40-r2

A small tool to list processes as a tree

https://github.com/FredHucht/pstree

sudo apk add pstree
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: pstree
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Pstree
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pstree from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

pstree-doc 2.40-r2

A small tool to list processes as a tree (documentation)

https://github.com/FredHucht/pstree

sudo apk add pstree-doc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: pstree
  • normalized package name match
  • 匹配方式:Pstree
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pstree-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
MacPorts95%

pstree

sudo port install pstree
  • normalized package name match
  • 匹配方式:Pstree
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/pstree/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation