How To Install python3-ldb on Rocky Linux 8

In this tutorial we learn how to install python3-ldb on Rocky Linux 8. python3-ldb is Python bindings for the LDB library

Introduction

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

What is python3-ldb

Python bindings for the LDB library

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

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

sudo dnf -y install python3-ldb

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

sudo yum -y install python3-ldb

How To Uninstall python3-ldb on Rocky Linux 8

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

sudo dnf remove python3-ldb

python3-ldb Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/52
/usr/lib/.build-id/52/e388df36e9c537b71c1e4a7cc53018a8b99f6e
/usr/lib/.build-id/65
/usr/lib/.build-id/65/05b26ee9181bdccbec285a6482620acb34fff9
/usr/lib64/libpyldb-util.cpython-36m-x86-64-linux-gnu.so.2
/usr/lib64/libpyldb-util.cpython-36m-x86-64-linux-gnu.so.2.2.0
/usr/lib64/python3.6/site-packages/__pycache__/_ldb_text.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/__pycache__/_ldb_text.cpython-36.pyc
/usr/lib64/python3.6/site-packages/_ldb_text.py
/usr/lib64/python3.6/site-packages/ldb.cpython-36m-x86_64-linux-gnu.so
/usr/lib/.build-id
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/7016d912a9ab20ee20f508d9097e2f31230b5d
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/6d49999698f668a0908b51009c55bc69c61814
/usr/lib/libpyldb-util.cpython-36m-i386-linux-gnu.so.2
/usr/lib/libpyldb-util.cpython-36m-i386-linux-gnu.so.2.2.0
/usr/lib/python3.6/site-packages/__pycache__/_ldb_text.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/__pycache__/_ldb_text.cpython-36.pyc
/usr/lib/python3.6/site-packages/_ldb_text.py
/usr/lib/python3.6/site-packages/ldb.cpython-36m-i386-linux-gnu.so

References

Summary

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