Source

Older downloads are available at http://mosquitto.org/files/

Binary Installation

The binary packages listed below are supported by the Mosquitto project. In many cases Mosquitto is also available directly from official Linux/BSD distributions.

Windows

You will also need to install Win64 OpenSSL v1.1.0 Light or Win32OpenSSL v1.1.0 Light from slproweb.com

See also readme-windows.txt after installing.

Mac

Mosquitto can be installed from the homebrew project. See brew.sh and then use brew install mosquitto

Linux distributions with snap support

  • snap install mosquitto

CentOS

Download the repository config file for your CentOS version from below and copy it to /etc/yum.repos.d/ You'll now be able to install and keep mosquitto up to date using the normal package management tools.

The available packages are: mosquitto, mosquitto-clients, libmosquitto1, libmosquitto-devel, libmosquittopp1, libmosquittopp-devel, python-mosquitto. CentOS 7 CentOS 6

Debian

  • Mosquitto is now in Debian proper. There will be a short delay between a new release and it appearing in Debian as part of the normal Debian procedures.
  • There are also Debian repositories provided by the mosquitto project, as described at http://mosquitto.org/2013/01/mosquitto-debian-repository

openSUSE

Download the repository config file for your openSUSE version from below and copy it to /etc/zypp/repos.d/ You'll now be able to install and keep mosquitto up to date using the normal package management tools.

The available packages are: mosquitto, mosquitto-clients, libmosquitto1, libmosquitto-devel, libmosquittopp1, libmosquittopp-devel, python-mosquitto.

  • [openSUSE 13.2]http://download.opensuse.org/repositories/home:/oojah:/mqtt/openSUSE_13.2/home:oojah:mqtt.repo)
  • [openSUSE 13.1]http://download.opensuse.org/repositories/home:/oojah:/mqtt/openSUSE_13.1/home:oojah:mqtt.repo)

Raspberry Pi

Mosquitto is available through the main repository.

There are also Debian repositories provided by the mosquitto project, as described at http://mosquitto.org/2013/01/mosquitto-debian-repository/

Redhat Enterprise Linux

Download the repository config file for your RHEL version from below and copy it to /etc/yum.repos.d/ You'll now be able to install and keep mosquitto up to date using the normal package management tools.

The available packages are: mosquitto, mosquitto-clients, libmosquitto1, libmosquitto-devel, libmosquittopp1, libmosquittopp-devel, python-mosquitto. RHEL 7 RHEL 6

SUSE Linux Enterprise Server

Add the appropriate repository to your package config from the list below, then install mosquitto from your normal package management tools.

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.

  • sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
  • sudo apt-get update

Other packages known to exist

Arch Linux

  • Mosquitto can be found in the community repository.

Fedora

Mosquitto is now available from Fedora directly. Use yum install mosquitto, or search for "mosquitto" to find the related packages.

FreeBSD

Mosquitto is available for FreeBSD: http://www.freshports.org/net/mosquitto/

Gentoo

Use emerge mosquitto

OpenWrt

If you're using a trunk snapshot use opkg update; opkg install mosquitto

Karl Palsson maintains a set of feeds that may be more up to date than the current OpenWrt version:

  • https://github.com/remakeelectric/owrt_pub_feeds