How To Install syslog-ng-python on CentOS 8

syslog-ng-python is Python support for syslog-ng

Introduction

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

What is syslog-ng-python

This module supports the Python destination.

We can use yum or dnf to install syslog-ng-python on CentOS 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 CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 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 CentOS 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 CentOS 8 using yum and dnf.