Mosquitto_sub Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

Mosquitto_sub Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

mosquitto_sub

MQTT version 3.1/3.1.1 compatible message broker

Maintainer: Roger A. Light



Section: net

Install mosquitto_sub

  • Debian apt-get install mosquitto-clients Click to copy
  • Ubuntu apt-get install mosquitto-clients Click to copy
  • Alpine OS apk add mosquitto Click to copy
  • Arch Linux pacman -S mosquitto Click to copy
  • Kali Linux apt-get install mosquitto-clients Click to copy
  • Fedora dnf install mosquitto Click to copy
  • Raspbian apt-get install mosquitto-clients Click to copy
  • macOS brew install mosquitto Click to copy

mosquitto

MQTT version 3.1/3.1.1 compatible message broker

This is a message broker that supports version 3.1 and 3.1.1 of the MQTT protocol. MQTT provides a method of carrying out messaging using a publish/subscribe model. It is lightweight, both in terms of bandwidth usage and ease of implementation. This makes it particularly useful at the edge of the network where a sensor or other simple device may be implemented using an arduino for example.

mosquitto-clients

Mosquitto command line MQTT clients

This is two MQTT version 3.1/3.1.1 command line clients. mosquitto_pub can be used to publish messages to a broker and mosquitto_sub can be used to subscribe to a topic to receive messages. MQTT provides a method of carrying out messaging using a publish/subscribe model. It is lightweight, both in terms of bandwidth usage and ease of implementation. This makes it particularly useful at the edge of the network where a sensor or other simple device may be implemented using an arduino for example.

Installing mosquitto_sub command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of mosquitto_sub 2026 package in your OS.