How To Install libdb.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libdb.x86_64 in Amazon Linux 2. libdb.x86_64 is The Berkeley DB database library for C

Introduction

In this tutorial we learn how to install libdb.x86_64 on Amazon Linux 2.

What is libdb.x86_64

The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides embedded database support for both traditional and client/server applications. The Berkeley DB includes B+tree, Extended Linear Hashing, Fixed and Variable-length record access methods, transactions, locking, logging, shared memory caching, and database recovery. The Berkeley DB supports C, C++, Java, and Perl APIs. It is used by many applications, including Python and Perl, so this should be installed on all systems.

We can use yum to install libdb.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libdb.x86_64.

Install libdb.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libdb.x86_64 using yum by running the following command:

sudo yum -y install libdb.x86_64

How To Uninstall libdb.x86_64 on Amazon Linux 2

To uninstall only the libdb.x86_64 package we can use the following command:

sudo yum remove libdb.x86_64

libdb.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libdb-5.3.so
/usr/lib64/libdb-5.so
/usr/share/doc/libdb-5.3.21
/usr/share/doc/libdb-5.3.21/LICENSE
/usr/share/doc/libdb-5.3.21/README

References

Summary

In this tutorial we learn how to install libdb.x86_64 on Amazon Linux 2 using yum.