How To Install lmdb on Rocky Linux 8

In this tutorial we learn how to install lmdb on Rocky Linux 8. lmdb is Memory-mapped key-value database

Introduction

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

What is lmdb

LMDB is an ultra-fast, ultra-compact key-value embedded data store developed by Symas for the OpenLDAP Project. By using memory-mapped files, it provides the read performance of a pure in-memory database while still offering the persistence of standard disk-based databases, and is only limited to the size of the virtual address space.

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

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

sudo dnf -y install lmdb

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

sudo yum -y install lmdb

How To Uninstall lmdb on Rocky Linux 8

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

sudo dnf remove lmdb

lmdb Package Contents on Rocky Linux 8

/usr/bin/mdb_copy
/usr/bin/mdb_dump
/usr/bin/mdb_load
/usr/bin/mdb_stat
/usr/lib/.build-id
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/c8b312ef301ee115b145653416a010af0b7f20
/usr/lib/.build-id/58
/usr/lib/.build-id/58/6ad996af12cf2ed2371a6a2610a726430c0159
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/5ff102940b268e0d8ed1efaa385b44afbb7214
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/014ed22ab64fe05ee6d3509e5f46b700a4bc56
/usr/share/man/man1/mdb_copy.1.gz
/usr/share/man/man1/mdb_dump.1.gz
/usr/share/man/man1/mdb_load.1.gz
/usr/share/man/man1/mdb_stat.1.gz

References

Summary

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