In the newest dietpi release V6.2 mosquitto works, really good news, because you can use it in node-red.
BUT mosquitto-clients seems NOT to work, so as far as I see it is still impossible to use mosquitto_sub and mosquitto_pub, which means you cannot subscribe and publish in the console window.
I hope this can be overcome, too.

Just install the package by apt-get.