# 使用 Homebrew 安装 zyre

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

## 安装

```sh
sudo av install brew:zyre
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zyre
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:zyre
- **软件包管理器:** Homebrew
- **版本:** 2.0.1
- **来源摘要:** Local Area Clustering for Peer-to-Peer Applications
- **主页:** <https://github.com/zeromq/zyre>
- **仓库:** <https://github.com/zeromq/zyre>
- **最后更新:** 2026-07-10T09:36:50-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- zpinger (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Zyre is a ZeroMQ-family C framework for local-area peer discovery, presence, and reliable group messaging. It lets nearby processes find each other over a LAN, join groups, and exchange messages without a central broker.

### 项目历史

The public zeromq/zyre repository was created on 2012-10-17 inside the broader ZeroMQ ecosystem. Its README presents Zyre as local-area clustering for peer-to-peer applications, built around UDP beacons for discovery and ZeroMQ Dealer-Router messaging for reliable peer interconnection.

Zyre is closely tied to ZeroMQ's RFC process. The README points to RFC 36, the ZeroMQ Realtime Exchange protocol, for discovery and heartbeating; that stable RFC defines how peers discover each other, organize into groups, and send events over ZMTP.

The project inherited common ZeroMQ community practices: MPL 2.0 source, C4-style contribution process, CLASS C style guidance, generated API documentation, self-tests, and example tools such as zpinger for seeing peers on a local network.

### 采用历史

Zyre adoption sits in the ZeroMQ niche rather than in general application networking. The README lists use cases such as local service discovery, clustering services on the same Ethernet network, smart-device control, and multi-user mobile applications, which are exactly the places where brokerless local discovery is useful.

The ZeroMQ Guide's distributed-computing chapter frames discovery, presence, and connectivity as recurring problems for room-scale, WiFi, and proximity networks. Zyre packages one opinionated answer to that problem for C and ZeroMQ users, so its significance is strongest for developers already comfortable with ZeroMQ patterns.

### 使用方式

A Zyre application creates a node, starts it, receives event messages, joins or leaves named groups, whispers to individual peers, and shouts to groups. The README describes incoming events as zmsg_t messages delivered by zyre_recv, with the first frame identifying event type.

The bundled zpinger utility is the package's practical command-line face: running it on two or more machines is the README's smoke test for local discovery. Library users build the same primitives into local clusters, device-control networks, and peer-aware services.

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

Zyre is package-nerd significant because it is a small leaf in a layered messaging stack: libsodium, libzmq, czmq, then Zyre. Packaging it preserves a higher-level ZeroMQ pattern that would otherwise be reimplemented badly in each local-discovery application.

It is also a good example of protocol-backed packaging. The library is not just helper code; it is an implementation of a published ZeroMQ RFC, which gives downstreams a stable conceptual contract even if their only visible executable is zpinger.

### 时间线

- 2012-10-17: Public zeromq/zyre GitHub repository is created.
- 2010s: Zyre grows as the ZeroMQ local-area discovery and clustering layer, with tagged public releases and generated README/API documentation.
- 2014: RFC 36/ZRE carries 2009-2014 iMatix copyright text and is published as the stable ZeroMQ Realtime Exchange protocol used by Zyre.
- 2020s: The repository remains active and the README continues to document Linux, macOS, and Windows builds plus zpinger-based local-network testing.

### Related projects

- Related projects and protocols include ZeroMQ/libzmq, CZMQ, libsodium, ZMTP, RFC 36/ZRE, RFC 22/C4, RFC 21/CLASS, zmsg, zactor, zyre_event, zpinger, and other brokerless service-discovery systems such as ZeroConf-style local discovery.

### 来源

- <https://api.github.com/repos/zeromq/zyre>
- <https://github.com/zeromq/zyre>
- <https://raw.githubusercontent.com/zeromq/zyre/master/README.md>
- <https://rfc.zeromq.org/spec/36/>
- <https://zguide.zeromq.org/docs/chapter8/>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Combined YAML source

View the package source record on GitHub. [combined/zyre.yml](https://github.com/mxcl/pkgdb/blob/main/combined/zyre.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
