# 使用 Homebrew, MacPorts, Nix, apt 安装 pth

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

## 安装

```sh
sudo av install brew:pth
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install pth
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pth
```

  证据: MacPorts ports tree: devel/pth/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#pth
```

  证据: nixpkgs package indexes: pth from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- Ubuntu apt (92%):

```sh
sudo apt install libpth-dev
```

  证据: Ubuntu 24.04 LTS package indexes: libpth-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## 软件包事实

- **软件包键:** brew:pth
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/pth>
- **版本:** 2.0.7
- **来源摘要:** GNU Portable THreads
- **主页:** <https://www.gnu.org/software/pth/>
- **上游文档:** <https://www.gnu.org/software/pth/>
- **许可证:** LGPL-2.1-or-later
- **源码归档:** <https://ftpmirror.gnu.org/gnu/pth/pth-2.0.7.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- pth-config (cli)
- pth-config (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.0.7
- 本地数据: OK
- 上游仓库: https://www.gnu.org/software/pth/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** pth
- **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

## 其他软件包管理器记录

- Nix - pth: normalized package name match | nixpkgs package indexes: pth from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - libpth-dev - 2.0.7-22.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libpth-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU Portable Threads (development) | https://www.gnu.org/software/pth/
- Ubuntu apt - libpth20t64 - 2.0.7-22.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libpth20t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU Portable Threads | https://www.gnu.org/software/pth/
- MacPorts - pth: normalized package name match | MacPorts ports tree: devel/pth/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [coreutils](https://pkg.so/zh-hans/brew/coreutils/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [bash](https://pkg.so/zh-hans/brew/bash/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [glibc](https://pkg.so/zh-hans/brew/glibc/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [bc](https://pkg.so/zh-hans/brew/bc/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [stow](https://pkg.so/zh-hans/brew/stow/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [gnu-which](https://pkg.so/zh-hans/brew/gnu-which/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [findutils](https://pkg.so/zh-hans/brew/findutils/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [ddrescue](https://pkg.so/zh-hans/brew/ddrescue/) - Shares pkgdb curated category or tags: cli, gnu, system.

## Combined YAML source

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


## 来源

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