How To Install audit on AlmaLinux 8

In this tutorial we learn how to install audit in AlmaLinux 8. audit is User space tools for kernel auditing

Introduction

In this tutorial we learn how to install audit on AlmaLinux 8.

What is audit

The audit package contains the user space utilities for storing and searching the audit records generated by the audit subsystem in the Linux 2.6 and later kernels.

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

Install audit on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install audit using dnf by running the following command:

sudo dnf -y install audit

Install audit on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install audit using yum by running the following command:

sudo yum -y install audit

How To Uninstall audit on AlmaLinux 8

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

sudo dnf remove audit

References

Summary

In this tutorial we learn how to install audit on AlmaLinux 8 using yum and dnf.