How to Install The Mosquitto MQTT Broker on Linux

In this tutorial we will look at how you install and run the mosquitto MQTT broker on a Linux server running for example Raspberry Pi or Ubuntu. Here are the steps I used on Ubuntu. sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa sudo apt-get update sudo apt-get install mosquitto sudo apt-get install mosquitto-clients sudo apt clean For Raspberry Pi the instructions are taken from  here: wget sudo apt-key add mosquitto-repo.gpg.key Then make the repository available : cd /etc/apt/sources.list.d/ Then , depending on which version of debian you are using: sudo wget sudo wget sudo wget Then update apt information: sudo

Continue reading