How To Install lmdb on CentOS 7

In this tutorial we learn how to install lmdb on CentOS 7. lmdb is Memory-mapped key-value database

Introduction

In this tutorial we learn how to install lmdb on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install lmdb.

Install lmdb on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install lmdb

Install lmdb on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install lmdb

How To Uninstall lmdb on CentOS 7

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

sudo dnf remove lmdb

References

Summary

In this tutorial we learn how to install lmdb on CentOS 7 using yum and dnf.