# 使用 Homebrew, MacPorts, Nix, pacman 安装 brook

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

## 安装

```sh
sudo av install brew:brook
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install brook
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install brook
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#brook
```

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

- pacman (92%):

```sh
sudo pacman -S brook
```

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

## 软件包事实

- **软件包键:** brew:brook
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/brook>
- **版本:** 20260101
- **来源摘要:** Cross-platform strong encryption and not detectable proxy. Zero-Configuration
- **主页:** <https://brook.app/>
- **仓库:** <https://github.com/txthinking/brook>
- **上游文档:** <https://www.txthinking.com/brook.html>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://github.com/txthinking/brook/archive/refs/tags/v20260101.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- brook (cli)
- brook (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 20260101
- 本地数据: OK
- 上游仓库: https://github.com/txthinking/brook
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Brook is TxThinking's cross-platform programmable network tool, packaged as a Go-based proxy/VPN-style command-line program with clients for desktop, mobile, Linux, and OpenWrt. Its public positioning has shifted from a simple encrypted proxy toward a broader programmable network layer.

### 项目历史

The official GitHub repository describes Brook as a cross-platform programmable network tool and documents a basic server/client workflow around commands such as `brook server` and `brook link`. Its tag history includes date-stamped releases starting in 2017, showing a long-running release model rather than a one-off proxy experiment.

The current official product page emphasizes system-level networking, TCP/UDP/IPv4/IPv6 coverage, client-side and server-side programmability, DNS and routing control, packet capture, MITM HTTP/HTTPS capabilities, and cross-platform clients for iOS, macOS, Android, Windows, and Linux.

### 采用历史

Brook's adoption is strongest in the privacy, proxy, and programmable-networking niche. GitHub shows a large open-source audience with thousands of stars and forks, while the input package facts show distribution through Homebrew, MacPorts, Nix, Arch, and other Unix-like package channels.

### 使用方式

Common use starts with a Brook server listening on a port and a client or generated link carrying connection parameters. Later Brook workflows extend into system-wide routing, DNS policy, destination rewriting, application-level controls, and OpenWrt or mobile clients.

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

Brook is notable in package-manager history as one of several post-Shadowsocks-era Go networking tools that package cleanly into a single binary while covering a wide surface area: proxying, VPN-like routing, mobile clients, DNS policy, and traffic inspection. Its date-based release tags also make it recognizable in rolling-release packaging.

### 时间线

- 2017-03-16: Earliest public release tag observed in the official Git repository.
- 2017-2020s: Brook evolves through frequent date-stamped releases.
- 2025-12-31: GitHub lists v20260101 as the latest release at the time researched.

### Related projects

- Related networking packages include Shadowsocks, V2Ray/Xray, sing-box, gost, WireGuard, OpenVPN, and OpenWrt proxy tooling. Brook differs by combining proxy transport, programmable policy, and cross-platform commercial-style clients around the same project.

### 来源

- <https://github.com/txthinking/brook#readme>
- <https://www.txthinking.com/brook.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:** brook
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - brook: normalized package name match | nixpkgs package indexes: pkgs/by-name/br/brook/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - brook - 20240214-1: normalized package name match | Arch Linux sync databases: brook from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A cross-platform proxy/vpn software | https://github.com/txthinking/brook
- MacPorts - brook: normalized package name match | MacPorts ports tree: net/brook/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [connect](https://www.automicvault.com/zh-hans/pkg/brew/connect/) - Shares av.db curated category or tags: cli, networking, proxy.
- [dante](https://www.automicvault.com/zh-hans/pkg/brew/dante/) - Shares av.db curated category or tags: cli, networking, proxy.
- [geph4](https://www.automicvault.com/zh-hans/pkg/brew/geph4/) - Shares av.db curated category or tags: cli, networking, proxy.
- [ghostunnel](https://www.automicvault.com/zh-hans/pkg/brew/ghostunnel/) - Shares av.db curated category or tags: cli, networking, proxy.
- [gost](https://www.automicvault.com/zh-hans/pkg/brew/gost/) - Shares av.db curated category or tags: cli, networking, proxy.
- [hysteria](https://www.automicvault.com/zh-hans/pkg/brew/hysteria/) - Shares av.db curated category or tags: cli, networking, proxy.
- [libproxy](https://www.automicvault.com/zh-hans/pkg/brew/libproxy/) - Shares av.db curated category or tags: cli, networking, proxy.
- [mihomo](https://www.automicvault.com/zh-hans/pkg/brew/mihomo/) - Shares av.db curated category or tags: cli, networking, proxy.
- [sing-box](https://www.automicvault.com/zh-hans/pkg/brew/sing-box/) - Local package facts share a topical domain. Shared terms: cli, networking, platform, proxy.
- [v2ray](https://www.automicvault.com/zh-hans/pkg/brew/v2ray/) - Local package facts share a topical domain. Shared terms: cli, networking, platform, proxy.

## Combined YAML source

View the package source record on GitHub. [combined/brook.yml](https://github.com/automic-vault/db/blob/main/combined/brook.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
