How To Install snoopy on Rocky Linux 8

In this tutorial we learn how to install snoopy on Rocky Linux 8. snoopy is A preload library to send shell commands to syslog

Introduction

In this tutorial we learn how to install snoopy on Rocky Linux 8.

What is snoopy

Snoopy is designed to aid a sysadmin by providing a log of commands executed. Snoopy is completely transparent to the user and applications. It is linked into programs to provide a wrapper around calls to execve(). Logging is done via syslog.

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

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

sudo dnf -y install snoopy

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

sudo yum -y install snoopy

How To Uninstall snoopy on Rocky Linux 8

To uninstall only the snoopy package we can use the following command:

sudo dnf remove snoopy

snoopy Package Contents on Rocky Linux 8

/etc/snoopy.ini
/usr/lib/.build-id
/usr/lib/.build-id/63
/usr/lib/.build-id/63/dd7795b51626c65f8dd2953e5e344c5ba1df1a
/usr/lib64/libsnoopy.so
/usr/lib64/libsnoopy.so.0
/usr/lib64/libsnoopy.so.0.0.0
/usr/sbin/snoopy-disable
/usr/sbin/snoopy-enable
/usr/share/doc/snoopy
/usr/share/doc/snoopy/COPYING
/usr/share/doc/snoopy/ChangeLog
/usr/share/doc/snoopy/README.md
/usr/share/licenses/snoopy
/usr/share/licenses/snoopy/COPYING

References

Summary

In this tutorial we learn how to install snoopy on Rocky Linux 8 using yum and dnf.