How To Install PyGreSQL.x86_64 on Amazon Linux 2

In this tutorial we learn how to install PyGreSQL.x86_64 in Amazon Linux 2. PyGreSQL.x86_64 is A Python client library for PostgreSQL

Introduction

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

What is PyGreSQL.x86_64

PostgreSQL is an advanced Object-Relational database management system. The PyGreSQL package provides a module for developers to use when writing Python code for accessing a PostgreSQL database.

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

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

sudo yum -y install PyGreSQL.x86_64

How To Uninstall PyGreSQL.x86_64 on Amazon Linux 2

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

sudo yum remove PyGreSQL.x86_64

PyGreSQL.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/PyGreSQL-4.0-py2.7.egg-info
/usr/lib64/python2.7/site-packages/_pg.so
/usr/lib64/python2.7/site-packages/pg.py
/usr/lib64/python2.7/site-packages/pg.pyc
/usr/lib64/python2.7/site-packages/pg.pyo
/usr/lib64/python2.7/site-packages/pgdb.py
/usr/lib64/python2.7/site-packages/pgdb.pyc
/usr/lib64/python2.7/site-packages/pgdb.pyo
/usr/share/doc/PyGreSQL-4.0
/usr/share/doc/PyGreSQL-4.0/announce.txt
/usr/share/doc/PyGreSQL-4.0/changelog.txt
/usr/share/doc/PyGreSQL-4.0/future.txt
/usr/share/doc/PyGreSQL-4.0/install.txt
/usr/share/doc/PyGreSQL-4.0/pg.txt
/usr/share/doc/PyGreSQL-4.0/pgdb.txt
/usr/share/doc/PyGreSQL-4.0/readme.txt
/usr/share/doc/PyGreSQL-4.0/tutorial
/usr/share/doc/PyGreSQL-4.0/tutorial/advanced.py
/usr/share/doc/PyGreSQL-4.0/tutorial/basics.py
/usr/share/doc/PyGreSQL-4.0/tutorial/func.py
/usr/share/doc/PyGreSQL-4.0/tutorial/syscat.py

References

Summary

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