Raspberry Pi

Ubuntu

Mosquitto is available in the Ubuntu repositories so you can install as with
any other package. If you are on an earlier version of Ubuntu or want a more
recent version of mosquitto, add the mosquitto-dev
PPA to your
repositories list - see the link for details. mosquitto can then be installed
from your package manager.