How To Install compat-db-headers.noarch on Amazon Linux 2

In this tutorial we learn how to install compat-db-headers.noarch in Amazon Linux 2. compat-db-headers.noarch is The Berkeley DB database compatibility headers

Introduction

In this tutorial we learn how to install compat-db-headers.noarch on Amazon Linux 2.

What is compat-db-headers.noarch

The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides embedded database support for both traditional and client/server applications. This package contains Berkeley DB library headers used for compatibility.

We can use yum to install compat-db-headers.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install compat-db-headers.noarch.

Install compat-db-headers.noarch 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 compat-db-headers.noarch using yum by running the following command:

sudo yum -y install compat-db-headers.noarch

How To Uninstall compat-db-headers.noarch on Amazon Linux 2

To uninstall only the compat-db-headers.noarch package we can use the following command:

sudo yum remove compat-db-headers.noarch

compat-db-headers.noarch Package Contents on Amazon Linux 2

/usr/include/db4.7.25
/usr/include/db4.7.25/db.h
/usr/include/db4.7.25/db_185.h
/usr/include/db4.7.25/db_cxx.h
/usr/share/doc/compat-db-headers-4.7.25
/usr/share/doc/compat-db-headers-4.7.25/LICENSE

References

Summary

In this tutorial we learn how to install compat-db-headers.noarch on Amazon Linux 2 using yum.