How To Install mqttcli on Fedora 36

In this tutorial we learn how to install mqttcli in Fedora 36. mqttcli is Simple MQTT CLI pub/sub client

Introduction

In this tutorial we learn how to install mqttcli on Fedora 36.

What is mqttcli

mqttcli provides two programs (pub and sub) that allow command-line access to an MQTT broker. sub subscribes to a topic and prints messages received to standard output. pub publishes the provided message to the provided topic. Both programs accept flags that can be provided as a config file.

We can use yum or dnf to install mqttcli on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mqttcli.

Install mqttcli on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install mqttcli using dnf by running the following command:

sudo dnf -y install mqttcli

Install mqttcli on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mqttcli using yum by running the following command:

sudo yum -y install mqttcli

How To Uninstall mqttcli on Fedora 36

To uninstall only the mqttcli package we can use the following command:

sudo dnf remove mqttcli

mqttcli Package Contents on Fedora 36

/usr/bin/pub
/usr/bin/sub
/usr/lib/.build-id
/usr/lib/.build-id/62
/usr/lib/.build-id/62/be5625eac801a2845e7f4e300497bb88f779a1
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/755174da11688641a9c78e1c93c4f5c4c5bdeb
/usr/share/doc/mqttcli
/usr/share/doc/mqttcli/README.md
/usr/share/licenses/mqttcli
/usr/share/licenses/mqttcli/LICENSE
/usr/share/man/man1
/usr/share/man/man1/pub.1.gz
/usr/share/man/man1/sub.1.gz

References

Summary

In this tutorial we learn how to install mqttcli on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).