# 使用 Homebrew 安装 libpaho-mqtt

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

## 安装

```sh
sudo av install brew:libpaho-mqtt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libpaho-mqtt
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:libpaho-mqtt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libpaho-mqtt>
- **版本:** 1.3.16
- **来源摘要:** Eclipse Paho C client library for MQTT
- **主页:** <https://eclipse-paho.github.io/paho.mqtt.c/MQTTClient/html/>
- **仓库:** <https://github.com/eclipse-paho/paho.mqtt.c>
- **上游文档:** <https://eclipse-paho.github.io/paho.mqtt.c/MQTTClient/html/>
- **许可证:** EPL-2.0
- **源码归档:** <https://github.com/eclipse-paho/paho.mqtt.c/archive/refs/tags/v1.3.16.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- MQTTVersion (cli)
- MQTTVersion (别名)

## 依赖

- openssl@3

## 构建依赖

- cmake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.16
- 本地数据: OK
- 上游仓库: https://github.com/eclipse-paho/paho.mqtt.c
- 检测到的最新版本: v1.3.16 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Eclipse Paho MQTT C is the ANSI C client library in the Eclipse Paho project, providing synchronous and asynchronous APIs for MQTT clients on POSIX, Windows, macOS, and embedded-adjacent environments.

### 项目历史

Paho grew out of IBM and Eurotech making MQTT client code available through Eclipse during the early 2010s. The Eclipse Paho project page describes it as an Eclipse IoT project for open-source implementations of MQTT and MQTT-SN in multiple programming languages.

The C client inherited a longer MQTT C lineage from IBM work around small devices and the Really Small Message Broker era. By placing that lineage under Eclipse governance, Paho made MQTT client libraries easier for vendors, distributions, and device developers to consume under a neutral open-source project.

### 采用历史

Paho's adoption followed MQTT's standardization and IoT growth. MQTT 3.1.1 became an OASIS Standard in October 2014 and ISO/IEC 20922 in 2016, while MQTT 5.0 was approved by OASIS in March 2019. Paho C tracks those protocol versions with MQTT 3.1, 3.1.1, and 5.0 support.

### 使用方式

Developers use the C library to connect to an MQTT broker, publish messages, subscribe to topics, and receive messages. The project documents two C APIs: MQTTClient for simpler blocking/synchronous use and MQTTAsync for callback-oriented nonblocking applications.

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

For package maintainers, libpaho-mqtt is the canonical C client for a standardized IoT protocol. It is small enough to be a library dependency, but broad enough to support TLS, persistence, WebSockets, reconnect behavior, and both blocking and nonblocking application styles.

### 时间线

- 2011: IBM and Eurotech announced donation of MQTT C and Java client implementations to the proposed Eclipse Paho project.
- 2014: MQTT 3.1.1 was approved as an OASIS Standard.
- 2016: MQTT 3.1.1 was approved as ISO/IEC 20922.
- 2019: MQTT 5.0 was approved as an OASIS Standard, and Paho C documents MQTT 5.0 support.

### Related projects

- Eclipse Paho includes MQTT client implementations for multiple languages beyond C.
- Paho MQTT C++ layers a C++ API over the C library.
- MQTT brokers such as Mosquitto, EMQX, HiveMQ, and broker services are natural interoperability targets for Paho C clients.

### 来源

- <https://andypiper.co.uk/2011/11/04/mqtt-goes-free-a-personal-qa/>
- <https://eclipse.dev/paho/>
- <https://eclipse.dev/paho/clients/c/>
- <https://github.com/eclipse-paho/paho.mqtt.c>
- <https://www.eclipse.org/community/eclipse_newsletter/2015/october/article3.php>
- <https://www.oasis-open.org/2016/07/19/oasis-mqtt-internet-of-things-standard-now-approved-by-iso-iec-jtc1/>
- <https://www.oasis-open.org/standard/mqtt-v5-0-os/>
- <https://www.oasis-open.org/standard/mqttv3-1-1/>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libpaho-mqtt
- **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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [syslog-ng](https://pkg.so/zh-hans/brew/syslog-ng/) - Popular package that depends on this formula.
- [mosquitto](https://pkg.so/zh-hans/brew/mosquitto/) - Shares pkgdb curated category or tags: cli, messaging, mqtt, networking.
- [czmq](https://pkg.so/zh-hans/brew/czmq/) - Shares pkgdb curated category or tags: c, cli, messaging, networking.
- [emqx](https://pkg.so/zh-hans/brew/emqx/) - Shares pkgdb curated category or tags: cli, messaging, mqtt, networking.
- [nanomsg](https://pkg.so/zh-hans/brew/nanomsg/) - Shares pkgdb curated category or tags: c, cli, messaging, networking.
- [rabbitmq](https://pkg.so/zh-hans/brew/rabbitmq/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [signal-cli](https://pkg.so/zh-hans/brew/signal-cli/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [nats-server](https://pkg.so/zh-hans/brew/nats-server/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [profanity](https://pkg.so/zh-hans/brew/profanity/) - Shares pkgdb curated category or tags: cli, messaging, networking.
- [ejabberd](https://pkg.so/zh-hans/brew/ejabberd/) - Local package facts share a topical domain. Shared terms: cli, messaging, networking, openssl, openssl-3.
- [lavinmq](https://pkg.so/zh-hans/brew/lavinmq/) - Local package facts share a topical domain. Shared terms: cli, messaging, mqtt, networking, openssl.

## Combined YAML source

View the package source record on GitHub. [combined/libpaho-mqtt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libpaho-mqtt.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
- cross-ecosystem install command graph
