# 使用 Homebrew, Nix 安装 libtrace

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

## 安装

```sh
sudo av install brew:libtrace
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libtrace
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#libtrace
```

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

## 软件包事实

- **软件包键:** brew:libtrace
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libtrace>
- **版本:** 4.0.34
- **来源摘要:** Library for trace processing supporting multiple inputs
- **主页:** <https://github.com/LibtraceTeam/libtrace>
- **仓库:** <https://github.com/LibtraceTeam/libtrace>
- **许可证:** GPL-2.0-or-later AND LGPL-3.0-or-later
- **源码归档:** <https://github.com/LibtraceTeam/libtrace/archive/refs/tags/4.0.34-1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- traceconvert (cli)
- tracediff (cli)
- traceends (cli)
- tracefilter (cli)
- tracemcast (cli)
- tracemerge (cli)
- tracepktdump (cli)
- tracereplay (cli)
- tracereport (cli)
- tracertstats (cli)
- tracesplit (cli)
- tracesplit_dir (cli)
- tracestats (cli)
- tracesummary (cli)
- tracetop (cli)
- tracetopends (cli)
- traceucast (cli)
- traceconvert (别名)
- tracediff (别名)
- traceends (别名)
- tracefilter (别名)
- tracemcast (别名)
- tracemerge (别名)
- tracepktdump (别名)
- tracereplay (别名)
- tracereport (别名)
- tracertstats (别名)
- tracesplit (别名)
- tracesplit_dir (别名)
- tracestats (别名)
- tracesummary (别名)
- tracetop (别名)
- tracetopends (别名)
- traceucast (别名)

## 依赖

- openssl@3
- wandio

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf

## macOS 提供的库

- libpcap
- ncurses

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.0.34
- 本地数据: OK
- 上游仓库: https://github.com/LibtraceTeam/libtrace
- 检测到的最新版本: 4.0.34-1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

libtrace is a C library and suite of trace tools for processing live and offline network packet captures across multiple trace and interface formats.

### 项目历史

The libtrace README states that the code was originally developed by the University of Waikato WAND research group and was primarily designed for the real-time interface to the Waikato DAG Capture Point software. It later grew beyond that original environment to support a range of trace and interface formats.

The repository records copyright for University of Waikato code through 2022 and for later code and documentation contributed by Shane Alcock from 2023 through 2026. The 4.0 series introduced a parallel packet-processing API for multithreaded workloads.

### 采用历史

libtrace's adoption is strongest in network measurement, packet-trace analysis, and research tooling rather than broad desktop use. Its command-line utilities, including traceconvert, tracefilter, tracemerge, tracereport, tracesplit, tracestats, and tracesummary, made it useful as both a library and a practical trace-processing toolkit.

### 使用方式

Users employ libtrace to read, filter, convert, replay, summarize, and report on traffic captures from offline files or live interfaces. Developers link against the library when they need one API over multiple capture formats and, in the 4.0 line, when they need parallel packet processing.

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

For packet-analysis package nerds, libtrace is interesting because it is not just another pcap wrapper: it comes from a university measurement environment, carries a family of trace* command-line tools, and preserves support for specialized capture systems alongside common packet formats.

### 时间线

- 2007-2022: University of Waikato copyright range shown in the README for code through version 4.0.20.
- 2017: GitHub releases page lists libtrace 4.0.2 as a public 4.0-series release.
- 2023: README records Shane Alcock copyright for newer code and documentation beginning in 2023.
- 2026: GitHub releases page lists Libtrace 4.0.33 on June 10, 2026.

### Related projects

- Waikato DAG Capture Point software is the original environment named by the README.
- libpacketdump, wandio, libwandder, and related LibtraceTeam repositories sit in the same packet-trace tooling ecosystem.
- pcap-oriented tools such as tcpdump and Wireshark are adjacent consumers or producers of traffic capture data, though libtrace focuses on programmatic trace processing.

### 来源

- <http://www.wand.net.nz/>
- <https://github.com/LibtraceTeam/libtrace>
- <https://github.com/LibtraceTeam/libtrace/releases>
- <https://github.com/LibtraceTeam/libtrace/wiki/ChangeLog>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libtrace
- **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 - libtrace: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libtrace/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.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [wandio](https://pkg.so/zh-hans/brew/wandio/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build 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.
- [libprotoident](https://pkg.so/zh-hans/brew/libprotoident/) - Popular package that depends on this formula.
- [ngrep](https://pkg.so/zh-hans/brew/ngrep/) - Shares pkgdb curated category or tags: cli, networking, packet-analysis.
- [packetq](https://pkg.so/zh-hans/brew/packetq/) - Shares pkgdb curated category or tags: cli, networking, packet-analysis.
- [miruo](https://pkg.so/zh-hans/brew/miruo/) - Shares pkgdb curated category or tags: cli, networking, packet-analysis.
- [pktanon](https://pkg.so/zh-hans/brew/pktanon/) - Shares pkgdb curated category or tags: cli, networking, packet-analysis.
- [bgpstream](https://pkg.so/zh-hans/brew/bgpstream/) - Shares pkgdb curated category or tags: cli, network-analysis, networking.
- [asroute](https://pkg.so/zh-hans/brew/asroute/) - Shares pkgdb curated category or tags: cli, network-analysis, networking.
- [c-ares](https://pkg.so/zh-hans/brew/c-ares/) - Shares pkgdb curated category or tags: cli, networking.
- [unbound](https://pkg.so/zh-hans/brew/unbound/) - Shares pkgdb curated category or tags: cli, networking.
- [dnsviz](https://pkg.so/zh-hans/brew/dnsviz/) - Local package facts share a topical domain. Shared terms: analysis, cli, networking, openssl, openssl-3.

## Combined YAML source

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