How To Install syslog-ng-java on Rocky Linux 8

In this tutorial we learn how to install syslog-ng-java on Rocky Linux 8. syslog-ng-java is Java destination support for syslog-ng

Introduction

In this tutorial we learn how to install syslog-ng-java on Rocky Linux 8.

What is syslog-ng-java

This package provides java destination support for syslog-ng.

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

Install syslog-ng-java on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install syslog-ng-java using dnf by running the following command:

sudo dnf -y install syslog-ng-java

Install syslog-ng-java on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install syslog-ng-java using yum by running the following command:

sudo yum -y install syslog-ng-java

How To Uninstall syslog-ng-java on Rocky Linux 8

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

sudo dnf remove syslog-ng-java

syslog-ng-java Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/72/0e7f567f5929e83c1a7ad8ccced3de7a5cb2c3
/usr/lib64/syslog-ng/java-modules
/usr/lib64/syslog-ng/java-modules/syslog-ng-core.jar
/usr/lib64/syslog-ng/libmod-java.so

References

Summary

In this tutorial we learn how to install syslog-ng-java on Rocky Linux 8 using yum and dnf.