# 使用 Homebrew, apt, MacPorts, Nix, apk, dnf 安装 ucspi-tcp

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

## 安装

```sh
sudo av install brew:ucspi-tcp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ucspi-tcp
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ucspi-tcp
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install ucspi-tcp
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#ucspi-tcp
```

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

- apk (92%):

```sh
sudo apk add date
```

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

- dnf (92%):

```sh
sudo dnf install date-devel
```

  证据: Fedora Rawhide package metadata: date-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ucspi-tcp
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ucspi-tcp>
- **版本:** 0.88
- **来源摘要:** Tools for building TCP client-server applications
- **主页:** <https://cr.yp.to/ucspi-tcp.html>
- **上游文档:** <https://cr.yp.to/ucspi-tcp.html>
- **许可证:** LicenseRef-Homebrew-public-domain
- **源码归档:** <https://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz>
- **最后更新:** 2026-07-14T20:07:12+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- addcr (cli)
- argv0 (cli)
- date@ (cli)
- delcr (cli)
- finger@ (cli)
- fixcrio (cli)
- http@ (cli)
- mconnect (cli)
- mconnect-io (cli)
- rblsmtpd (cli)
- recordio (cli)
- tcpcat (cli)
- tcpclient (cli)
- tcprules (cli)
- tcprulescheck (cli)
- tcpserver (cli)
- who@ (cli)
- addcr (别名)
- argv0 (别名)
- date@ (别名)
- delcr (别名)
- finger@ (别名)
- fixcrio (别名)
- http@ (别名)
- mconnect (别名)
- mconnect-io (别名)
- rblsmtpd (别名)
- recordio (别名)
- tcpcat (别名)
- tcpclient (别名)
- tcprules (别名)
- tcprulescheck (别名)
- tcpserver (别名)
- who@ (别名)

## 安装行为

- post-install 钩子: 未定义
- 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.88
- 管理器更新时间: 2026-07-14
- 本地数据: OK
- 上游仓库: https://cr.yp.to/ucspi-tcp.html
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

ucspi-tcp is Daniel J. Bernstein's Unix Client-Server Program Interface implementation for TCP. It provides small command-line tools such as tcpserver and tcpclient for building TCP services and clients around ordinary Unix programs.

### 项目历史

The UCSPI specification is dated 1996 and defines a command-line interface for client-server communication tools. ucspi-tcp applies that model to TCP, with clients and servers setting descriptors and environment variables before executing an application.

The official install page identifies ucspi-tcp 0.88 as the latest published package, and the official tarball has a March 18, 2000 last-modified date. The project is distributed from Bernstein's cr.yp.to site rather than through a public source-control repository.

### 采用历史

ucspi-tcp became part of the classic djb software ecosystem, especially alongside daemontools-style service supervision and qmail-era mail setups. The input package metadata shows that, despite its age and tarball distribution model, it remains packaged in Homebrew, Debian, Ubuntu, MacPorts, Nix, and other Unix package collections.

### 使用方式

Package users most often encounter tcpserver, tcpclient, tcprules, tcprulescheck, recordio, rblsmtpd, and helper tools. The official docs describe tcpserver as a way to accept TCP connections and run another program, while rblsmtpd is documented as an SMTP wrapper that blocks mail from listed sites when used under tcpserver.

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

For package nerds, ucspi-tcp is historically significant because it is a compact Unix networking toolkit from the pre-systemd, pre-framework era. It represents a style where small binaries, environment variables, file-descriptor conventions, and package-manager preservation keep old but sharp infrastructure tools available.

### 时间线

- 1996: UCSPI specification copyrighted by D. J. Bernstein.
- 2000: ucspi-tcp 0.88 tarball published according to official HTTP metadata.
- 2002: rblsmtpd documentation records then-current public RBL source status updates.
- Current packaging: source_facts lists Homebrew, Debian, Ubuntu, MacPorts, Nix, and other package-manager entries.

### Related projects

- The official rblsmtpd page points to tcpserver and tcprules as companion programs within the suite.
- The documentation also points to rbldns from djbdns for running RBL or anti-RBL sources.

### 来源

- <https://cr.yp.to/proto/ucspi.txt>
- <https://cr.yp.to/ucspi-tcp.html>
- <https://cr.yp.to/ucspi-tcp/install.html>
- <https://cr.yp.to/ucspi-tcp/rblsmtpd.html>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ucspi-tcp
- **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 - ucspi-tcp - 1:0.88-13: normalized package name match | Debian stable package indexes: ucspi-tcp from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line tools for building TCP client-server applications | http://cr.yp.to/ucspi-tcp
- Debian apt - ucspi-tcp-ipv6 - 1:0.88-13: normalized package name match | Debian stable package indexes: ucspi-tcp-ipv6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line tools for building TCP client-server applications (IPv6) | http://cr.yp.to/ucspi-tcp
- Nix - ucspi-tcp: normalized package name match | nixpkgs package indexes: pkgs/by-name/uc/ucspi-tcp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ucspi-tcp - 1:0.88-8ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: ucspi-tcp from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line tools for building TCP client-server applications | http://cr.yp.to/ucspi-tcp
- Ubuntu apt - ucspi-tcp-ipv6 - 1:0.88-8ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: ucspi-tcp-ipv6 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line tools for building TCP client-server applications (IPv6) | http://cr.yp.to/ucspi-tcp
- MacPorts - ucspi-tcp: normalized package name match | MacPorts ports tree: net/ucspi-tcp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - finger - 0.17-17: installed executable or alias match | Debian stable package indexes: finger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | user information lookup program | http://ftp.linux.org.uk/pub/linux/Networking/netkit/
- Debian apt - r-cran-date - 1.2.42-1: installed executable or alias match | Debian stable package indexes: r-cran-date from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU R package for date handling | https://cran.r-project.org/package=date
- Ubuntu apt - finger - 0.17-17: installed executable or alias match | Ubuntu 24.04 LTS package indexes: finger from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | user information lookup program | http://ftp.linux.org.uk/pub/linux/Networking/netkit/
- Ubuntu apt - r-cran-date - 1.2.42-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: r-cran-date from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU R package for date handling | https://cran.r-project.org/package=date
- apk - date - 3.0.5-r0: installed executable or alias match | Alpine Linux edge package indexes: date from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Date and time library based on the C++11/14/17 <chrono> header | https://howardhinnant.github.io/date/date.html
- apk - date-dev - 3.0.5-r0: installed executable or alias match | Alpine Linux edge package indexes: date-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Date and time library based on the C++11/14/17 <chrono> header (development files) | https://howardhinnant.github.io/date/date.html
- apk - finger - 0.5-r0: installed executable or alias match | Alpine Linux edge package indexes: finger from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Small, simple, and portable finger client and server | https://sr.ht/~bpv/finger/
- apk - finger-doc - 0.5-r0: installed executable or alias match | Alpine Linux edge package indexes: finger-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Small, simple, and portable finger client and server (documentation) | https://sr.ht/~bpv/finger/
- dnf - date-devel - 3.0.4-4.fc45: installed executable or alias match | Fedora Rawhide package metadata: date-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Date and time library based on the C++11/14/17 <chrono> header | https://github.com/HowardHinnant/date
- dnf - finger - 0.17-84.fc45: installed executable or alias match | Fedora Rawhide package metadata: finger from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | The finger client


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [djbdns](https://pkg.so/zh-hans/brew/djbdns/) - Popular package that depends on this formula.
- [socat](https://pkg.so/zh-hans/brew/socat/) - Shares pkgdb curated category or tags: cli, networking, tcp.
- [netcat](https://pkg.so/zh-hans/brew/netcat/) - Shares pkgdb curated category or tags: cli, networking, tcp.
- [tiger-vnc](https://pkg.so/zh-hans/brew/tiger-vnc/) - Shares pkgdb curated category or tags: cli, client-server, networking.
- [stuntman](https://pkg.so/zh-hans/brew/stuntman/) - Shares pkgdb curated category or tags: cli, client-server, networking.
- [ser2net](https://pkg.so/zh-hans/brew/ser2net/) - Shares pkgdb curated category or tags: cli, networking, tcp.
- [dns2tcp](https://pkg.so/zh-hans/brew/dns2tcp/) - Shares pkgdb curated category or tags: cli, networking, tcp.
- [rinetd](https://pkg.so/zh-hans/brew/rinetd/) - Shares pkgdb curated category or tags: cli, networking, tcp.
- [dish](https://pkg.so/zh-hans/brew/dish/) - Shares pkgdb curated category or tags: cli, networking, tcp.
- [pwnat](https://pkg.so/zh-hans/brew/pwnat/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, client-server, networking, server.

## Combined YAML source

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