Archive for 'Packaging'

Mosquitto on Fedora

Mosquitto has been packaged for Fedora thanks to Rich Mattes. Fedora 19 users will be able to install with “yum install mosquitto”.

Thanks Rich!

Mosquitto Debian repository

On a previous post I described how to make mosquitto debian packages. This turned out to be a bit problematic, so I’ve now put up an experimental debian repository for mosquitto. It includes packages for the i386, amd64, armel and raspberry pi (raspbian armhf ) architectures.

It’s worth repeating that this is experimental – there are package changes that haven’t been vetted by a Debian developer so it’s possible something will break. I’ve tested myself and had no problems so far.

To use the new repository you should first import the repository package signing key:

sudo apt-key add mosquitto-repo.gpg.key

Then make the repository available to apt:

cd /etc/apt/sources.list.d/
Then one of the following, depending on which version of debian you are using:
sudo wget
sudo wget


Then update apt information:

apt-get update

And discover what mosquitto packages are available:

apt-cache search mosquitto

Or just install:

apt-get install mosquitto

As Debian has been in feature freeze since before Mosquitto 1.0 was released, it will be a long time until there is an updated version of Mosquitto in Debian. It is, however, fairly straightforward to do the packaging yourself. Here’s how to do that from the command line.

Download and unpack the mosquitto source tarball:

tar -zxf mosquitto-1.1.2.tar.gz

Rename the tarball to match Debian requirements:

mv mosquitto-1.1.2.tar.gz mosquitto_1.1.2.orig.tar.gz

The current mosquitto packaging files are available at – you want the .debian.tar.gz:

tar -zxf mosquitto_1.1.2-1.debian.tar.gz -C mosquitto-1.1/

The next step is to build the package, but you may find that you need to install some packages first:

sudo apt-get install build-essential python quilt libwrap0-dev libssl-dev devscripts python-setuptools

To build the packages do

cd mosquitto-1.1.2/

You should now have a list of .deb files in the parent directory which you can install with:

sudo dpkg -i <deb file>

Please leave comments if you find this useful or have any problems.

New Linux repositories

I’ve just added some more Linux repositories to the download page for Fedora 16 and SLE 10, 11 and 11 SP1.

Note that mosquitto-python isn’t available on SLE 10.

Arch Linux package

Gordon Pearce has packaged Mosquitto on Arch Linux through an Arch User Repository. The package details are at

Thanks Gordon!

Mosquitto on OpenWrt

Thanks to work done by Karl Palsson, Mosquitto is now available on OpenWrt, the embedded Linux distribution frequently used on wireless routers. This is exciting if you want a really low power way of running an MQTT broker. It also includes the mosquitto clients and development libraries.

It’s only in the source tree at the moment, so if you want to install it I believe you’ll have to download everything and compile it yourself.


Karl tells me that if you’re running a binary snapshot from trunk then you can do:

opkg update
opkg install mosquitto mosquitto-client libmosquitto

You only need to build it yourself if you’re running a stable binary.

Debian and Ubuntu packaging

I’m very pleased to say that Mosquitto is very nearly packaged in Debian and Ubuntu. In truth, 0.10 is packaged and uploaded for both Debian testing (Wheezy) and Ubuntu Oneiric Ocelot, but there is a problem with the config that means it won’t restart properly. That is fixed with the 0.11.3 upload which is now in unstable. That means after 10 days and it will be in Debian testing for all to use. I’ve also submitted a sync request with Ubuntu(bug #808530) to ensure it makes it across. I’ll still be maintaining the Launchpad PPA for older versions of Ubuntu.

Thanks to the Debian developer Michael Tautschnig for reviewing my package and doing the upload.

Mosquitto on QNX

Andrea asked a question on launchpad about problems compiling Mosquitto on QNX. I’ve now managed to get an evaluation version of QNX and fix the compilation problems. These fixes will be in 0.12, but you can get them in the current snapshot if it’s urgent. I’ve also put compiled binaries in the downloads directory but they are completely untested, so use at your own risk.

Although I’ve provided these binaries I don’t intend to keep doing so for each version of Mosquitto. I will endeavour to fix any other problems that arise in the future though.

Mosquitto in Mac homebrew

Thanks to work done by Adam Rudd, mosquitto is now available in the Mac package manager homebrew. Once you’ve installed homebrew (see the link), you can install mosquitto with:

brew install mosquitto

Mosquitto on Maemo

Yuvraaj Kelkar got in touch to say he’s packaged up mosquitto and the client libraries for Maemo. If you want to use MQTT on your Maemo device then take a look at the details on

Thanks Yuvraaj!