How To Install postgresql-static.x86_64 on Amazon Linux 2

In this tutorial we learn how to install postgresql-static.x86_64 in Amazon Linux 2. postgresql-static.x86_64 is Statically linked PostgreSQL libraries

Introduction

In this tutorial we learn how to install postgresql-static.x86_64 on Amazon Linux 2.

What is postgresql-static.x86_64

Statically linked PostgreSQL libraries that do not have dynamically linked counterparts.

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

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

sudo yum -y install postgresql-static.x86_64

How To Uninstall postgresql-static.x86_64 on Amazon Linux 2

To uninstall only the postgresql-static.x86_64 package we can use the following command:

sudo yum remove postgresql-static.x86_64

postgresql-static.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libpgport.a

References

Summary

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