# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 tcpflow

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

## 安装

```sh
sudo av install brew:tcpflow
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tcpflow
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tcpflow
```

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

### Linux

- apk (92%):

```sh
sudo apk add tcpflow
```

  证据: Alpine Linux edge package indexes: tcpflow from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install tcpflow
```

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

- dnf (92%):

```sh
sudo dnf install tcpflow
```

  证据: Fedora Rawhide package metadata: tcpflow from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#tcpflow
```

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

- pacman (92%):

```sh
sudo pacman -S tcpflow
```

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

- zypper (92%):

```sh
sudo zypper install tcpflow
```

  证据: openSUSE Tumbleweed package metadata: tcpflow from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:tcpflow
- **软件包管理器:** Homebrew
- **版本:** 1.6.1
- **来源摘要:** TCP/IP packet demultiplexer
- **主页:** <https://github.com/simsong/tcpflow>
- **仓库:** <https://github.com/simsong/tcpflow>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tcpflow (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

tcpflow is a packet-capture and TCP stream reassembly tool that writes each reconstructed flow to files for protocol analysis, debugging, and network forensics.

### 项目历史

The upstream README says Jeremy Elson originally wrote tcpflow to capture data sent by programs using undocumented network protocols, including streaming media and instant messaging applications, so those protocols could be reverse engineered.

The README also records that Simson Garfinkel later took over maintenance after leaving Sandstorm Enterprises and needing a TCP flow reassembly program. The public GitHub repository was created in 2012 and continues as the upstream development home.

### 采用历史

tcpflow's README states that most common GNU/Linux distributions ship it in their repositories, and the input package facts show it packaged by Homebrew and major Linux and Unix package systems.

Its niche adoption follows from doing something adjacent to tcpdump and Wireshark but more file-oriented: reconstructing application byte streams into separate artifacts that can be inspected after capture.

### 使用方式

Common usage is to capture live traffic or read stored tcpdump packet flows, split each TCP direction into a named file, and optionally post-process HTTP responses into headers and bodies.

The README positions it for understanding network packet flows, protocol debugging, malware analysis from HTTP sessions, and forensic workflows.

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

Package nerds care because tcpflow sits in the pcap toolchain but exposes a different abstraction: not packets, but reconstructed conversations. That makes it useful as a small dependency-free-ish CLI companion to tcpdump in forensic and debugging toolboxes.

It is also a packaging case study in older network tooling modernized over time, with libpcap, OpenSSL/zlib-style dependencies, autotools, CMake notes, RPM building instructions, and active distribution packaging all visible in upstream docs.

### 时间线

- 1998: Sandstorm Enterprises founded, later producing related commercial TCP flow tools TCPDEMUX and NetIntercept.
- 2012: simsong/tcpflow GitHub repository created.
- 2013: Upstream README recommends citing the Naval Postgraduate School technical report on tcpflow.
- 2020: Maintainer status report describes porting tcpflow and related libraries to modern C++.

### Related projects

- tcpdump and libpcap are related because tcpflow can process tcpdump packet flows and uses the LBL Packet Capture Library.
- Wireshark is mentioned upstream as a contrasting packet analyzer; TCPDEMUX and NetIntercept are named as related commercial flow tools.

### 来源

- <https://api.github.com/repos/simsong/tcpflow>
- <https://github.com/simsong/tcpflow#readme>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - tcpflow - 1.6.1-3+b1: normalized package name match | Debian stable package indexes: tcpflow from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | TCP flow recorder | https://github.com/simsong/tcpflow
- Debian apt - tcpflow-nox - 1.6.1-3+b1: normalized package name match | Debian stable package indexes: tcpflow-nox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | TCP flow recorder - version without X11 dependencies | https://github.com/simsong/tcpflow
- Nix - tcpflow: normalized package name match | nixpkgs package indexes: pkgs/by-name/tc/tcpflow/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - tcpflow - 1.6.1-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: tcpflow from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | TCP flow recorder | https://github.com/simsong/tcpflow
- Ubuntu apt - tcpflow-nox - 1.6.1-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: tcpflow-nox from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | TCP flow recorder - version without X11 dependencies | https://github.com/simsong/tcpflow
- apk - tcpflow - 1.6.1-r14: normalized package name match | Alpine Linux edge package indexes: tcpflow from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A Tool for monitoring, capturing and storing TCP connections flows | https://github.com/simsong/tcpflow
- apk - tcpflow-doc - 1.6.1-r14: normalized package name match | Alpine Linux edge package indexes: tcpflow-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A Tool for monitoring, capturing and storing TCP connections flows (documentation) | https://github.com/simsong/tcpflow
- dnf - tcpflow - 1.6.2-0.3.8d47b53.fc45: normalized package name match | Fedora Rawhide package metadata: tcpflow from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Network traffic recorder | https://github.com/simsong/tcpflow
- pacman - tcpflow - 1.6.1-2: normalized package name match | Arch Linux sync databases: tcpflow from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Captures data transmitted as part of TCP connections then stores the data conveniently | https://github.com/simsong/tcpflow
- zypper - tcpflow - 1.6.1-2.17: normalized package name match | openSUSE Tumbleweed package metadata: tcpflow from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Program for capturing and collecting TCP streams | https://github.com/simsong/tcpflow
- MacPorts - tcpflow: normalized package name match | MacPorts ports tree: net/tcpflow/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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