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

In this tutorial we learn how to install syslog-ng-python on Rocky Linux 8. syslog-ng-python is Python support for syslog-ng

Introduction

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

What is syslog-ng-python

This module supports the Python destination.

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

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

sudo dnf -y install syslog-ng-python

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

sudo yum -y install syslog-ng-python

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

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

sudo dnf remove syslog-ng-python

syslog-ng-python Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/28/89c674a5cca363688dd11ce9dbc76e73324228
/usr/lib64/syslog-ng/libmod-python.so
/usr/lib64/syslog-ng/python
/usr/lib64/syslog-ng/python/syslogng
/usr/lib64/syslog-ng/python/syslogng-1.0-py3.6.egg-info
/usr/lib64/syslog-ng/python/syslogng/__init__.py
/usr/lib64/syslog-ng/python/syslogng/__pycache__
/usr/lib64/syslog-ng/python/syslogng/__pycache__/__init__.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__init__.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/__init__.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/choicecompleter.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/commandlinelexer.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/completer.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/completerlang.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/debuggercli.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/debuglang.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/getoptlexer.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/langcompleter.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/lexer.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/lexertoken.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/macrocompleter.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/readline.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/syslognginternals.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/tablexer.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/templatelang.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/templatelexer.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/__pycache__/tflang.cpython-36.pyc
/usr/lib64/syslog-ng/python/syslogng/debuggercli/choicecompleter.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/commandlinelexer.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/completer.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/completerlang.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/debuggercli.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/debuglang.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/getoptlexer.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/langcompleter.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/lexer.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/lexertoken.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/macrocompleter.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/readline.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/syslognginternals.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/tablexer.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/templatelang.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/templatelexer.py
/usr/lib64/syslog-ng/python/syslogng/debuggercli/tflang.py

References

Summary

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