# 使用 Homebrew, Nix 安装 tracebox

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

## 安装

```sh
sudo av install brew:tracebox
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tracebox
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#tracebox
```

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

## 软件包事实

- **软件包键:** brew:tracebox
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tracebox>
- **版本:** 0.4.4
- **来源摘要:** Middlebox detection tool
- **主页:** <https://github.com/tracebox/tracebox>
- **仓库:** <https://github.com/tracebox/tracebox>
- **许可证:** GPL-2.0-only AND BSD-3-Clause
- **源码归档:** <https://github.com/tracebox/tracebox.git>
- **最后更新:** 2026-06-25T13:38:09+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- luatracebox (cli)
- tracebox (cli)
- luatracebox (别名)
- tracebox (别名)

## 依赖

- json-c
- lua

## 构建依赖

- autoconf
- automake
- libtool

## macOS 提供的库

- libpcap

## 安装行为

- post-install 钩子: 未定义
- 注意事项: Tracebox requires superuser privileges e.g. run with sudo. You should be certain that you trust any software you are executing with elevated privileges.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.4.4
- 管理器更新时间: 2026-06-25
- 本地数据: OK
- 上游仓库: https://github.com/tracebox/tracebox
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Tracebox is a network-diagnostics CLI for detecting middleboxes on an Internet path. Its README describes it as traceroute-like, but focused on identifying packet modifications by comparing probes with ICMP replies.

### 项目历史

Tracebox comes from the research and measurement side of networking. The project page explains that it detects middleboxes by using ICMP replies to identify changes in packets, relying on the common behavior of devices that return more of the original datagram than the minimum described by RFC 792.

The GitHub repository was created in 2013, with public release metadata from v0.3 in May 2015 through v0.4.4 in January 2018. The source tree includes C and C++ implementation code, Lua support, manual pages, and documentation.

### 采用历史

Tracebox's own README documents Homebrew installation for macOS, Linux builds from autotools dependencies, an OpenWRT package feed, and an Android build script for rooted phones. The OpenWRT section is explicitly marked unmaintained, which fits a project that was useful to network researchers and operators but did not become a constantly refreshed mainstream CLI.

### 使用方式

Users run `tracebox` or `luatracebox` to probe a path and inspect hop-by-hop packet modifications. The README documents JSON output via `-j`, verbose modification details, hop data, ICMP extensions, additions, deletions, and modifications, making it scriptable for measurement workflows.

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

In package-manager culture, Tracebox is a classic specialist network tool: packaged in Homebrew and Nix, rooted in Unix build conventions, and interesting because it extends the familiar traceroute mental model into middlebox detection and JSON-producing measurement.

### 时间线

- 2013-06: GitHub repository created.
- 2015-05: Tracebox v0.3 released.
- 2017-10: Tracebox v0.4.2 released.
- 2018-01: Tracebox v0.4.4 released.

### Related projects

- traceroute, ICMP, Lua, OpenWRT, Android builds, libpcap, netfilter queue.

### 来源

- <https://api.github.com/repos/tracebox/tracebox>
- <https://github.com/tracebox/tracebox#readme>
- <https://github.com/tracebox/tracebox/releases>
- <https://www.tracebox.org/>
- <https://www.tracebox.org/lua_doc>
- source_facts.package-manager


## 安全说明

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:** tracebox
- **Version Scheme:** 0
- **Revision:** 4
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - tracebox: normalized package name match | nixpkgs package indexes: pkgs/by-name/tr/tracebox/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Runtime dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [mtr](https://pkg.so/zh-hans/brew/mtr/) - Shares pkgdb curated category or tags: cli, network-diagnostics, networking, traceroute.
- [fping](https://pkg.so/zh-hans/brew/fping/) - Shares pkgdb curated category or tags: cli, icmp, network-diagnostics, networking.
- [tcptraceroute](https://pkg.so/zh-hans/brew/tcptraceroute/) - Shares pkgdb curated category or tags: cli, network-diagnostics, networking, traceroute.
- [nexttrace](https://pkg.so/zh-hans/brew/nexttrace/) - Shares pkgdb curated category or tags: cli, network-diagnostics, networking, traceroute.
- [trippy](https://pkg.so/zh-hans/brew/trippy/) - Shares pkgdb curated category or tags: cli, network-diagnostics, networking, traceroute.
- [lft](https://pkg.so/zh-hans/brew/lft/) - Shares pkgdb curated category or tags: cli, network-diagnostics, networking, traceroute.
- [ttl](https://pkg.so/zh-hans/brew/ttl/) - Shares pkgdb curated category or tags: cli, network-diagnostics, networking, traceroute.
- [fastrace](https://pkg.so/zh-hans/brew/fastrace/) - Shares pkgdb curated category or tags: cli, network-diagnostics, networking, traceroute.

## Combined YAML source

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


## 来源

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