How To Install python3-audit on Rocky Linux 8

In this tutorial we learn how to install python3-audit on Rocky Linux 8. python3-audit is Python3 bindings for libaudit

Introduction

In this tutorial we learn how to install python3-audit on Rocky Linux 8.

What is python3-audit

The python3-audit package contains the bindings so that libaudit and libauparse can be used by python3.

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

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

sudo dnf -y install python3-audit

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

sudo yum -y install python3-audit

How To Uninstall python3-audit on Rocky Linux 8

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

sudo dnf remove python3-audit

python3-audit Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/47
/usr/lib/.build-id/47/7f3b4b9906f4a54a672de46ea0c49b66c41942
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/61710d43bc6b0c9536fa8733e6de661c1fa16b
/usr/lib64/python3.6/site-packages/__pycache__
/usr/lib64/python3.6/site-packages/__pycache__/audit.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/audit.cpython-36.pyc
/usr/lib64/python3.6/site-packages/_audit.so
/usr/lib64/python3.6/site-packages/audit.py
/usr/lib64/python3.6/site-packages/auparse.so

References

Summary

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