-
Notifications
You must be signed in to change notification settings - Fork 0
Installing MQTT Broker on RPi
Warren Fernandes edited this page Dec 20, 2015
·
1 revision
I want to run an MQTT broker at home for testing purposes. I prefer not using test.mosquitto.org for testing although it is very convenient. The intention here is to learn more about MQTT broker and in the future set up a secure MQTT broker.
I've tried to install it by googling instructions online, however they have not proven to be successful. So I'm going to make another effort where try things out step by step and record what works for me.
Download GPG Key and add it
curl -O http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
rm mosquitto-repo.gpg.key
Download mosquitto repo list
cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosquitto-wheezy.list
Update all the packages
sudo apt-get update
List mosquitto packages available
sudo apt-cache search mosquitto
Or just install:
sudo apt-get install mosquitto