# 使用 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
- **版本:** 4.0.34
- **来源摘要:** Library for trace processing supporting multiple inputs
- **主页:** <https://github.com/LibtraceTeam/libtrace>
- **仓库:** <https://github.com/LibtraceTeam/libtrace>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.0.34
## 项目历史与用法

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
