How To Install syslog-ng-mqtt on Fedora 36

In this tutorial we learn how to install syslog-ng-mqtt in Fedora 36. syslog-ng-mqtt is mqtt support for syslog-ng

Introduction

In this tutorial we learn how to install syslog-ng-mqtt on Fedora 36.

What is syslog-ng-mqtt

This module supports sending logs to MQTT through paho-c.

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

Install syslog-ng-mqtt 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 syslog-ng-mqtt using dnf by running the following command:

sudo dnf -y install syslog-ng-mqtt

Install syslog-ng-mqtt 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 syslog-ng-mqtt using yum by running the following command:

sudo yum -y install syslog-ng-mqtt

How To Uninstall syslog-ng-mqtt on Fedora 36

To uninstall only the syslog-ng-mqtt package we can use the following command:

sudo dnf remove syslog-ng-mqtt

syslog-ng-mqtt Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/79/bfe2ab9582db8becc4e7bd98ea336ee06ea8af
/usr/lib64/syslog-ng/libmqtt.so

References

Summary

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