How To Install mosquitto on Fedora 34
Introduction
In this tutorial we learn how to install mosquitto
on Fedora 34.
What is mosquitto
Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for “machine to machine” messaging such as with low power sensors or mobile devices such as phones, embedded computers or micro-controllers like the Arduino. mosquitto 2.0.11 1.fc34 x86_64 375 k mosquitto-2.0.11-1.fc34.src.rpm updates Open Source MQTT v5/v3.1.x Broker http EPL-2.0 Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for “machine to machine” messaging such as with low power sensors or mobile devices such as phones, embedded computers or micro-controllers like the Arduino.
We can use yum
or dnf
to install mosquitto
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mosquitto.
Install mosquitto on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install mosquitto
using dnf
by running the following command:
sudo dnf -y install mosquitto
Install mosquitto on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install mosquitto
using yum
by running the following command:
sudo yum -y install mosquitto
How To Uninstall mosquitto on Fedora 34
To uninstall only the mosquitto
package we can use the following command:
sudo dnf remove mosquitto
mosquitto Package Contents on Fedora 34
/etc/mosquitto
/etc/mosquitto/aclfile.example
/etc/mosquitto/mosquitto.conf
/etc/mosquitto/pskfile.example
/etc/mosquitto/pwfile.example
/usr/bin/mosquitto_ctrl
/usr/bin/mosquitto_passwd
/usr/bin/mosquitto_pub
/usr/bin/mosquitto_rr
/usr/bin/mosquitto_sub
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/0f69e6e5e40c86a2ccc39d398973cb6519e9c6
/usr/lib/.build-id/18
/usr/lib/.build-id/18/b691320884aeba8e5e46cc42d1ddff83359103
/usr/lib/.build-id/26
/usr/lib/.build-id/26/ca4fa3877da2e3bb8d838d5d2aa2a951867eb6
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/057d15be9a6505410be523d0a956e37d823499
/usr/lib/.build-id/2b/a291f979b18c1a9bdaa934e69106da66f7966f
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/11ad855f12a4d2e55f71c6761f5862c6abeabe
/usr/lib/.build-id/39
/usr/lib/.build-id/39/3d98823d383c800a5b2a4adcba66bee66ffc0f
/usr/lib/.build-id/af
/usr/lib/.build-id/af/d9028613d5a1dedce84341e52da7cb4d852329
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/6de1a8dede3dc6cbe36d695f0a2fde60fe6aba
/usr/lib/libmosquitto.so.1
/usr/lib/libmosquittopp.so.1
/usr/lib/mosquitto_dynamic_security.so
/usr/lib/systemd/system/mosquitto.service
/usr/sbin/mosquitto
/usr/share/doc/mosquitto
/usr/share/doc/mosquitto/CONTRIBUTING.md
/usr/share/doc/mosquitto/ChangeLog.txt
/usr/share/doc/mosquitto/README.md
/usr/share/licenses/mosquitto
/usr/share/licenses/mosquitto/LICENSE.txt
/usr/share/man/man1/mosquitto_ctrl.1.gz
/usr/share/man/man1/mosquitto_ctrl_dynsec.1.gz
/usr/share/man/man1/mosquitto_passwd.1.gz
/usr/share/man/man1/mosquitto_pub.1.gz
/usr/share/man/man1/mosquitto_rr.1.gz
/usr/share/man/man1/mosquitto_sub.1.gz
/usr/share/man/man5/mosquitto.conf.5.gz
/usr/share/man/man7/mosquitto-tls.7.gz
/usr/share/man/man7/mqtt.7.gz
/usr/share/man/man8/mosquitto.8.gz
/etc/mosquitto
/etc/mosquitto/aclfile.example
/etc/mosquitto/mosquitto.conf
/etc/mosquitto/pskfile.example
/etc/mosquitto/pwfile.example
/usr/bin/mosquitto_ctrl
/usr/bin/mosquitto_passwd
/usr/bin/mosquitto_pub
/usr/bin/mosquitto_rr
/usr/bin/mosquitto_sub
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/25f76d823757d400376f2199f9b522c672317d
/usr/lib/.build-id/10
/usr/lib/.build-id/10/83fc5c77ad65bbfb340322cb00d536e989709a
/usr/lib/.build-id/11
/usr/lib/.build-id/11/48397d847273a052359b2e40c840261bc8a04b
/usr/lib/.build-id/21
/usr/lib/.build-id/21/7c8ee31bb3ace2665c2452e457b42038e225df
/usr/lib/.build-id/30
/usr/lib/.build-id/30/d67dd09d6246c08f1e9f924a48d258f4aa53c1
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/6a102be3bdbdac5eae633d9100d358cc17b4eb
/usr/lib/.build-id/54
/usr/lib/.build-id/54/abcee24f91392a59700c4cbeebb6c47c6b2bee
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/7e3f5816eb3e820ca358510815f03c548d4223
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/46da11795bc74680efc7f42a52d123cad0a9f3
/usr/lib/systemd/system/mosquitto.service
/usr/lib64/libmosquitto.so.1
/usr/lib64/libmosquittopp.so.1
/usr/lib64/mosquitto_dynamic_security.so
/usr/sbin/mosquitto
/usr/share/doc/mosquitto
/usr/share/doc/mosquitto/CONTRIBUTING.md
/usr/share/doc/mosquitto/ChangeLog.txt
/usr/share/doc/mosquitto/README.md
/usr/share/licenses/mosquitto
/usr/share/licenses/mosquitto/LICENSE.txt
/usr/share/man/man1/mosquitto_ctrl.1.gz
/usr/share/man/man1/mosquitto_ctrl_dynsec.1.gz
/usr/share/man/man1/mosquitto_passwd.1.gz
/usr/share/man/man1/mosquitto_pub.1.gz
/usr/share/man/man1/mosquitto_rr.1.gz
/usr/share/man/man1/mosquitto_sub.1.gz
/usr/share/man/man5/mosquitto.conf.5.gz
/usr/share/man/man7/mosquitto-tls.7.gz
/usr/share/man/man7/mqtt.7.gz
/usr/share/man/man8/mosquitto.8.gz
/etc/mosquitto
/etc/mosquitto/aclfile.example
/etc/mosquitto/mosquitto.conf
/etc/mosquitto/pskfile.example
/etc/mosquitto/pwfile.example
/usr/bin/mosquitto_ctrl
/usr/bin/mosquitto_passwd
/usr/bin/mosquitto_pub
/usr/bin/mosquitto_rr
/usr/bin/mosquitto_sub
/usr/lib/.build-id
/usr/lib/.build-id/24
/usr/lib/.build-id/24/cebe6375e3d39c819f7af43a73719e9959a162
/usr/lib/.build-id/39
/usr/lib/.build-id/39/6daff38ead353a5b5b52b4003f78075cbb1134
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/23acd149345e1e27f319f21c8294892761ad5b
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/e4d0ae3cecba9d22e41883c388039ad014414e
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/a7d635a61c94b589d7b96e2ebbff8d3a348574
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/5cc68d397f366b2adbbb56feadb2dd018bf2ae
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/c49d7f18ae2acbbfe73f95bf77af49dfb6ad71
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/04da97578752c9bce1e1c4d4fe8c2831176e6a
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/6f8fd9a47399d900ce1b4352c1cfb1dd4cc7aa
/usr/lib/systemd/system/mosquitto.service
/usr/lib64/libmosquitto.so.1
/usr/lib64/libmosquittopp.so.1
/usr/lib64/mosquitto_dynamic_security.so
/usr/sbin/mosquitto
/usr/share/doc/mosquitto
/usr/share/doc/mosquitto/CONTRIBUTING.md
/usr/share/doc/mosquitto/ChangeLog.txt
/usr/share/doc/mosquitto/README.md
/usr/share/licenses/mosquitto
/usr/share/licenses/mosquitto/LICENSE.txt
/usr/share/man/man1/mosquitto_ctrl.1.gz
/usr/share/man/man1/mosquitto_ctrl_dynsec.1.gz
/usr/share/man/man1/mosquitto_passwd.1.gz
/usr/share/man/man1/mosquitto_pub.1.gz
/usr/share/man/man1/mosquitto_rr.1.gz
/usr/share/man/man1/mosquitto_sub.1.gz
/usr/share/man/man5/mosquitto.conf.5.gz
/usr/share/man/man7/mosquitto-tls.7.gz
/usr/share/man/man7/mqtt.7.gz
/usr/share/man/man8/mosquitto.8.gz
/etc/mosquitto
/etc/mosquitto/aclfile.example
/etc/mosquitto/mosquitto.conf
/etc/mosquitto/pskfile.example
/etc/mosquitto/pwfile.example
/usr/bin/mosquitto_ctrl
/usr/bin/mosquitto_passwd
/usr/bin/mosquitto_pub
/usr/bin/mosquitto_rr
/usr/bin/mosquitto_sub
/usr/lib/.build-id
/usr/lib/.build-id/77
/usr/lib/.build-id/77/c531f3f0347179d336e155be44ede00b11feb6
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/4c82416df4f29601ff1a6cebcae46af794738e
/usr/lib/.build-id/84
/usr/lib/.build-id/84/55046b98ce629657a03710d7517a66ab2f6189
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/34c153be113296832ae56c051498f8179eff63
/usr/lib/.build-id/b7/a2c97a38efd42fbff6ca002772871c723dbd7b
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/278ed13b32460ef5a7953eddd2c733e81764f8
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/703fb5fa4ecc32bd461392838eaa838748d584
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/1ad79e552c33965627d233d5b53dd73f73afe8
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/e4f3f9153f795355850969e6304cc1661b3bdf
/usr/lib/libmosquitto.so.1
/usr/lib/libmosquittopp.so.1
/usr/lib/mosquitto_dynamic_security.so
/usr/lib/systemd/system/mosquitto.service
/usr/sbin/mosquitto
/usr/share/doc/mosquitto
/usr/share/doc/mosquitto/CONTRIBUTING.md
/usr/share/doc/mosquitto/ChangeLog.txt
/usr/share/doc/mosquitto/README.md
/usr/share/licenses/mosquitto
/usr/share/licenses/mosquitto/LICENSE.txt
/usr/share/man/man1/mosquitto_ctrl.1.gz
/usr/share/man/man1/mosquitto_ctrl_dynsec.1.gz
/usr/share/man/man1/mosquitto_passwd.1.gz
/usr/share/man/man1/mosquitto_pub.1.gz
/usr/share/man/man1/mosquitto_rr.1.gz
/usr/share/man/man1/mosquitto_sub.1.gz
/usr/share/man/man5/mosquitto.conf.5.gz
/usr/share/man/man7/mosquitto-tls.7.gz
/usr/share/man/man7/mqtt.7.gz
/usr/share/man/man8/mosquitto.8.gz
References
- [mosquitto website](http://mosquitto.org/ http://mosquitto.org/)
Summary
In this tutorial we learn how to install mosquitto
on Fedora 34 using yum and dnf.