# Install mosquitto

Message broker implementing the MQTT protocol. Version 2.1.2 via Homebrew; verified 2026-06-06.

## Install

```sh
sudo av install brew:mosquitto
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mosquitto
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mosquitto
```

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

### Linux

- apk (92%):

```sh
sudo apk add mosquitto
```

  Evidence: Alpine Linux edge package indexes: mosquitto from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libmosquitto-dev
```

  Evidence: Debian stable package indexes: libmosquitto-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install mosquitto
```

  Evidence: Fedora Rawhide package metadata: mosquitto from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#mosquitto
```

  Evidence: nixpkgs package indexes: pkgs/by-name/mo/mosquitto/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mosquitto
```

  Evidence: Arch Linux sync databases: mosquitto from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libmosquitto1
```

  Evidence: openSUSE Tumbleweed package metadata: libmosquitto1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/mosquitto
```

  Evidence: Scoop official bucket manifest trees: bucket/mosquitto.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id EclipseFoundation.Mosquitto -e
```

  Evidence: Windows Package Manager source index: EclipseFoundation.Mosquitto from https://cdn.winget.microsoft.com/cache/source.msix

## Package Facts

- **Package key:** brew:mosquitto
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/mosquitto>
- **Version:** 2.1.2
- **Source summary:** Message broker implementing the MQTT protocol
- **Homepage:** <https://mosquitto.org/>
- **Upstream docs:** <https://mosquitto.org/documentation>
- **License:** EPL-1.0 OR BSD-3-Clause
- **Source archive:** <https://mosquitto.org/files/source/mosquitto-2.1.2.tar.gz>
- **Last updated:** 2026-06-06T11:29:13Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- mosquitto (cli)
- mosquitto_ctrl (cli)
- mosquitto_db_dump (cli)
- mosquitto_passwd (cli)
- mosquitto_pub (cli)
- mosquitto_rr (cli)
- mosquitto_signal (cli)
- mosquitto_sub (cli)
- mosquitto (alias)
- mosquitto_ctrl (alias)
- mosquitto_db_dump (alias)
- mosquitto_passwd (alias)
- mosquitto_pub (alias)
- mosquitto_rr (alias)
- mosquitto_signal (alias)
- mosquitto_sub (alias)

## Dependencies

- cjson
- libwebsockets
- openssl@3

## Build Dependencies

- cmake
- pkgconf

## macOS Provided Libraries

- libedit
- sqlite

## Install Behavior

- Post-install hook: not defined
- Service: declared
- Caveats: mosquitto has been installed with a default configuration file. You can make changes to the configuration by editing: $HOMEBREW_PREFIX/etc/mosquitto/mosquitto.conf
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 2.1.2
- Package-manager updated: 2026-06-06
- Local data status: ok
- Upstream repository: https://mosquitto.org/
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- formula declares a Homebrew service

## Source Database Details

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

## Other Package-Manager Records

- Debian apt - libmosquitto-dev - 2.0.21-1: normalized package name match | Debian stable package indexes: libmosquitto-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MQTT version 5.0/3.1.1/3.1 client library, development files | https://mosquitto.org/
- Debian apt - libmosquitto1 - 2.0.21-1: normalized package name match | Debian stable package indexes: libmosquitto1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MQTT version 5.0/3.1.1/3.1 client library | https://mosquitto.org/
- Debian apt - libmosquittopp-dev - 2.0.21-1: normalized package name match | Debian stable package indexes: libmosquittopp-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MQTT version 3.1 client C++ library, development files | https://mosquitto.org/
- Debian apt - libmosquittopp1 - 2.0.21-1: normalized package name match | Debian stable package indexes: libmosquittopp1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MQTT version 5.0/3.1.1/3.1 client C++ library | https://mosquitto.org/
- Debian apt - mosquitto - 2.0.21-1: normalized package name match | Debian stable package indexes: mosquitto from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MQTT version 5.0/3.1.1/3.1 compatible message broker | https://mosquitto.org/
- Debian apt - mosquitto-clients - 2.0.21-1: normalized package name match | Debian stable package indexes: mosquitto-clients from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Mosquitto command line MQTT clients | https://mosquitto.org/
- Debian apt - mosquitto-dev - 2.0.21-1: normalized package name match | Debian stable package indexes: mosquitto-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for Mosquitto | https://mosquitto.org/
- Nix - mosquitto: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mosquitto/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libmosquitto-dev - 2.0.18-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmosquitto-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MQTT version 5.0/3.1.1/3.1 client library, development files | https://mosquitto.org/
- Ubuntu apt - libmosquitto1 - 2.0.18-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmosquitto1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MQTT version 5.0/3.1.1/3.1 client library | https://mosquitto.org/
- Ubuntu apt - libmosquittopp-dev - 2.0.18-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmosquittopp-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MQTT version 3.1 client C++ library, development files | https://mosquitto.org/
- Ubuntu apt - libmosquittopp1 - 2.0.18-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmosquittopp1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MQTT version 5.0/3.1.1/3.1 client C++ library | https://mosquitto.org/
- Ubuntu apt - mosquitto - 2.0.18-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: mosquitto from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MQTT version 5.0/3.1.1/3.1 compatible message broker | https://mosquitto.org/
- Ubuntu apt - mosquitto-clients - 2.0.18-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: mosquitto-clients from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Mosquitto command line MQTT clients | https://mosquitto.org/
- Ubuntu apt - mosquitto-dev - 2.0.18-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: mosquitto-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for Mosquitto | https://mosquitto.org/
- apk - mosquitto - 2.1.2-r1: normalized package name match | Alpine Linux edge package indexes: mosquitto from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | open source MQTT broker | https://mosquitto.org/


## Related Links

- [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.
- [Package ecosystem packages](https://www.automicvault.com/zh-hans/pkg/package-ecosystem-tools/) - Matched package manager, installer, dependency, registry, or publishing metadata.
- [openssl@3](https://www.automicvault.com/zh-hans/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [libpaho-mqtt](https://www.automicvault.com/zh-hans/pkg/brew/libpaho-mqtt/) - Shares av.db curated category or tags: cli, messaging, mqtt, networking.
- [mqttui](https://www.automicvault.com/zh-hans/pkg/brew/mqttui/) - Shares av.db curated category or tags: cli, mqtt, networking, publish-subscribe.
- [emqx](https://www.automicvault.com/zh-hans/pkg/brew/emqx/) - Shares av.db curated category or tags: cli, iot, messaging, mqtt, networking.
- [rabbitmq](https://www.automicvault.com/zh-hans/pkg/brew/rabbitmq/) - Shares av.db curated category or tags: cli, message-broker, messaging, networking.
- [activemq](https://www.automicvault.com/zh-hans/pkg/brew/activemq/) - Shares av.db curated category or tags: cli, message-broker, messaging, networking.
- [czmq](https://www.automicvault.com/zh-hans/pkg/brew/czmq/) - Shares av.db curated category or tags: cli, messaging, networking.
- [nats-server](https://www.automicvault.com/zh-hans/pkg/brew/nats-server/) - Shares av.db curated category or tags: cli, messaging, networking.
- [signal-cli](https://www.automicvault.com/zh-hans/pkg/brew/signal-cli/) - Shares av.db curated category or tags: cli, messaging, networking.
- [lavinmq](https://www.automicvault.com/zh-hans/pkg/brew/lavinmq/) - Local package facts share a topical domain. Shared terms: broker, cli, implementing, message, message-broker.

## Sources

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