# 使用 Homebrew, apt, MacPorts, Nix, pacman 安装 ptunnel

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

## 安装

```sh
sudo av install brew:ptunnel
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ptunnel
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ptunnel
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install ptunnel
```

  证据: Debian stable package indexes: ptunnel from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#ptunnel
```

  证据: nixpkgs package indexes: pkgs/by-name/pt/ptunnel/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ptunnel
```

  证据: Arch Linux sync databases: ptunnel from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:ptunnel
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ptunnel>
- **版本:** 0.72
- **来源摘要:** Tunnel over ICMP
- **主页:** <https://www.cs.uit.no/~daniels/PingTunnel/>
- **上游文档:** <https://www.cs.uit.no/~daniels/PingTunnel/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://www.cs.uit.no/~daniels/PingTunnel/PingTunnel-0.72.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ptunnel (cli)
- ptunnel (别名)

## macOS 提供的库

- libpcap

## 安装行为

- post-install 钩子: 未定义
- 注意事项: Normally, ptunnel uses raw sockets and must be run as root (using sudo, for example). Alternatively, you can try using the -u flag to start ptunnel in 'unprivileged' mode, but this is not recommended. See https://www.cs.uit.no/~daniels/PingTunnel/ for details.
- 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
- 管理器版本: 0.72
- 本地数据: OK
- 上游仓库: https://www.cs.uit.no/~daniels/PingTunnel/
- 信息: 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:** ptunnel
- **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

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

- Debian apt - ptunnel - 0.72-3+b3: normalized package name match | Debian stable package indexes: ptunnel from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tunnel TCP connections over ICMP packets | http://www.mit.edu/afs.new/sipb/user/golem/tmp/ptunnel-0.61.orig/web/
- Nix - ptunnel: normalized package name match | nixpkgs package indexes: pkgs/by-name/pt/ptunnel/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ptunnel - 0.72-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: ptunnel from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tunnel TCP connections over ICMP packets | http://www.mit.edu/afs.new/sipb/user/golem/tmp/ptunnel-0.61.orig/web/
- pacman - ptunnel - 0.72-7: normalized package name match | Arch Linux sync databases: ptunnel from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool for reliably tunneling TCP connections over ICMP echo request and reply packets | https://www.cs.uit.no/~daniels/PingTunnel
- MacPorts - ptunnel: normalized package name match | MacPorts ports tree: net/ptunnel/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.
- [cloudflared](https://pkg.so/zh-hans/brew/cloudflared/) - Shares pkgdb curated category or tags: cli, networking, proxy, tunneling.
- [v2ray](https://pkg.so/zh-hans/brew/v2ray/) - Shares pkgdb curated category or tags: cli, networking, proxy, tunneling.
- [connect](https://pkg.so/zh-hans/brew/connect/) - Shares pkgdb curated category or tags: cli, networking, proxy, tunneling.
- [localtunnel](https://pkg.so/zh-hans/brew/localtunnel/) - Shares pkgdb curated category or tags: cli, networking, tunneling.
- [proxytunnel](https://pkg.so/zh-hans/brew/proxytunnel/) - Shares pkgdb curated category or tags: cli, networking, proxy, tunneling.
- [pgrok](https://pkg.so/zh-hans/brew/pgrok/) - Shares pkgdb curated category or tags: cli, networking, tunneling.
- [trojan-go](https://pkg.so/zh-hans/brew/trojan-go/) - Shares pkgdb curated category or tags: cli, networking, proxy, tunneling.
- [rospo](https://pkg.so/zh-hans/brew/rospo/) - Shares pkgdb curated category or tags: cli, networking, proxy, tunneling.
- [dns2tcp](https://pkg.so/zh-hans/brew/dns2tcp/) - Local package facts share a topical domain. Shared terms: cli, networking, over, tunnel, tunneling.

## Combined YAML source

View the package source record on GitHub. [combined/ptunnel.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ptunnel.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
