How To Install libdb-java.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libdb-java.x86_64 in Amazon Linux 2. libdb-java.x86_64 is Development files for using the Berkeley DB with Java

Introduction

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

What is libdb-java.x86_64

The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides embedded database support for both traditional and client/server applications. This package contains the libraries for building programs which use the Berkeley DB in Java.

We can use yum to install libdb-java.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-java.x86_64.

Install libdb-java.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-java.x86_64 using yum by running the following command:

sudo yum -y install libdb-java.x86_64

How To Uninstall libdb-java.x86_64 on Amazon Linux 2

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

sudo yum remove libdb-java.x86_64

libdb-java.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libdb_java-5.3.so
/usr/lib64/libdb_java-5.3_g.so
/usr/lib64/libdb_java-5.so
/usr/share/java/db.jar

References

Summary

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