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

In this tutorial we learn how to install postgresql-odbc.x86_64 in Amazon Linux 2. postgresql-odbc.x86_64 is PostgreSQL ODBC driver

Introduction

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

What is postgresql-odbc.x86_64

This package includes the driver needed for applications to access a PostgreSQL system via ODBC (Open Database Connectivity).

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

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

sudo yum -y install postgresql-odbc.x86_64

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

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

sudo yum remove postgresql-odbc.x86_64

postgresql-odbc.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/psqlodbc.so
/usr/lib64/psqlodbcw.so
/usr/share/doc/postgresql-odbc-09.03.0100
/usr/share/doc/postgresql-odbc-09.03.0100/README.txt
/usr/share/doc/postgresql-odbc-09.03.0100/config-opt.html
/usr/share/doc/postgresql-odbc-09.03.0100/config.html
/usr/share/doc/postgresql-odbc-09.03.0100/license.txt
/usr/share/doc/postgresql-odbc-09.03.0100/readme.txt
/usr/share/doc/postgresql-odbc-09.03.0100/release-7.3.html
/usr/share/doc/postgresql-odbc-09.03.0100/release.html
/usr/share/doc/postgresql-odbc-09.03.0100/unix-compilation.html
/usr/share/doc/postgresql-odbc-09.03.0100/win32-compilation.html

References

Summary

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