Uninstalling the syslog-ng binary

If you need to uninstall AxoSyslog for some reason, you have the following options:

  • If you have installed AxoSyslog using the .run installer: Execute the uninstall.sh script located at /opt/syslog-ng/bin/uninstall.sh. The uninstall script will automatically restore the syslog daemon used before installing syslog-ng. To completely remove AxoSyslog, including the configuration files, use the uninstall.sh --purge command.

  • If you have installed AxoSyslog from a .deb package: Execute the dpkg -r syslog-ng command to remove syslog-ng, or the dpkg -P syslog-ng command to remove AxoSyslog and the configuration files as well. Note that removing AxoSyslog does not restore the syslog daemon used before syslog-ng.

  • If you have installed AxoSyslog from an .rpm package: Execute the rpm -e syslog-ng command to remove AxoSyslog. Note that removing AxoSyslog does not restore the syslog daemon used before AxoSyslog.

  • If you have compiled AxoSyslog from source: Execute the sudo make uninstall command to remove AxoSyslog. Note that removing AxoSyslog does not restore the syslog daemon used before AxoSyslog.

  • If you have installed AxoSyslog from a .pkg package: Execute the pkgrm BBsyslng command to remove AxoSyslog. Note that removing AxoSyslog does not restore the syslog daemon used before syslog-ng.

    For automatic uninstall (answering y to all questions): Execute the yes | pkgrm BBsyslng command.

    The following files have to be deleted manually:

    • <syslog-ng path>/etc/syslog-ng.conf

    • <syslog-ng path>/var/syslog-ng.persist

    • <syslog-ng path>/var/syslog-ng-00000.qf

    • anything else under the <syslog-ng path>/var directory

Last modified December 4, 2023: Theme update (6377ea9)