# 使用 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
- **版本:** 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>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- MQTTVersion (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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


## 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
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
