# 使用 Homebrew, apk, MacPorts, zypper, scoop, winget 安装 onioncat

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

## 安装

```sh
sudo av install brew:onioncat
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install onioncat
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install onioncat
```

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

### Linux

- apk (92%):

```sh
sudo apk add onioncat
```

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

- zypper (92%):

```sh
sudo zypper install onioncat
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/ocat
```

  证据: Scoop official bucket manifest trees: bucket/ocat.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id ic005k.OCAuxiliaryTools -e
```

  证据: Windows Package Manager source index: ic005k.OCAuxiliaryTools from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:onioncat
- **软件包管理器:** Homebrew
- **版本:** 4.11.0
- **来源摘要:** VPN-adapter that provides location privacy using Tor or I2P
- **主页:** <https://github.com/rahra/onioncat>
- **仓库:** <https://github.com/rahra/onioncat>
- **最后更新:** 2026-07-28T14:05:35+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ocat (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

OnionCat is a long-running networking experiment that maps Tor hidden services or I2P tunnels into an IPv6 TUN interface. It makes onion/I2P endpoints look like peers on an IP network, so ordinary IP-based protocols can travel over Tor or I2P hidden-service transports.

### 项目历史

OnionCat development began in 2008, when Tor hidden-service v2 identifiers were short enough to be reversibly mapped into IPv6 addresses under a special prefix. Its own documentation describes the core trick as translating between OnionCat IPv6 addresses and .onion hostnames, then forwarding packets between a local TUN device and remote OnionCat peers.

The move from Tor v2 hidden services to v3 onion services challenged OnionCat's original design because v3 identifiers no longer fit inside an IPv6 address. OnionCat4 added lookup machinery to preserve the virtual-network model after the identifier-size change.

### 采用历史

OnionCat has been packaged beyond a single ecosystem: Debian documented an ocat(1) man page by the Jessie era, and Homebrew packages onioncat for macOS and Linux users. Its GitHub repository is the official upstream and had an onioncat-4.11.0 release dated March 9, 2023.

### 使用方式

Users run ocat with a local onion or I2P identifier, and OnionCat opens a TUN device, assigns it a derived IPv6 address, and relays packets through Tor or I2P. The tool can carry TCP, UDP, and other IP-based traffic, making it resemble a peer-to-peer VPN between hidden services rather than a web-only Tor client.

The README also exposes OnionCat's operational rough edges: it is a userland connector, depends on Tor/I2P setup, and does not add its own encryption on top of the transport. That makes it a tool for operators who understand the underlying anonymity network rather than a general-purpose consumer VPN.

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

OnionCat matters because it is one of the more literal attempts to package 'IP over onion services' as a Unix-style command. It combines old-school TUN-device networking, IPv6 address mapping, Tor/I2P naming, and distro packaging into a compact but unusual formula.

### 时间线

- 2008: OnionCat development began around Tor hidden-service v2 identifiers.
- 2015: Debian Jessie shipped an onioncat man page documenting ocat as an IP-transparent Tor/I2P connector.
- 2023-03-09: onioncat-4.11.0 was published as a GitHub release.
- 2023-10-25: the upstream README/man-page text identified ocat and documented OnionCat4 behavior.

### Related projects

- Related projects and technologies include Tor onion services, I2P server tunnels, TUN/TAP virtual network interfaces, and VPN-style tunneling tools.

### 来源

- <https://formulae.brew.sh/formula/onioncat>
- <https://github.com/rahra/onioncat>
- <https://github.com/rahra/onioncat/blob/master/doc/INTRO_TO_ONIONCAT4.txt>
- <https://manpages.debian.org/jessie/onioncat/ocat.1>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- apk - onioncat - 4.11.0-r1: normalized package name match | Alpine Linux edge package indexes: onioncat from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | OnionCat is a VPN-adapter, which uses Tor or I2P as its transport. | https://www.onioncat.org/
- apk - onioncat-doc - 4.11.0-r1: normalized package name match | Alpine Linux edge package indexes: onioncat-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | OnionCat is a VPN-adapter, which uses Tor or I2P as its transport. (documentation) | https://www.onioncat.org/
- zypper - onioncat - 4.11.0-1.12: normalized package name match | openSUSE Tumbleweed package metadata: onioncat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | VPN adapter for Tor and I2P | https://www.onioncat.org/
- MacPorts - onioncat: normalized package name match | MacPorts ports tree: net/onioncat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/ocat: installed executable or alias match | Scoop official bucket manifest trees: bucket/ocat.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - ic005k.OCAuxiliaryTools: installed executable or alias match | Windows Package Manager source index: ic005k.OCAuxiliaryTools from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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