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

In this tutorial we learn how to install postgresql-docs.x86_64 in Amazon Linux 2. postgresql-docs.x86_64 is Extra documentation for PostgreSQL

Introduction

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

What is postgresql-docs.x86_64

The postgresql-docs package contains some additional documentation for PostgreSQL. Currently, this includes the main documentation in PDF format and source files for the PostgreSQL tutorial.

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

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

sudo yum -y install postgresql-docs.x86_64

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

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

sudo yum remove postgresql-docs.x86_64

postgresql-docs.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/pgsql/tutorial
/usr/lib64/pgsql/tutorial/Makefile
/usr/lib64/pgsql/tutorial/README
/usr/lib64/pgsql/tutorial/advanced.source
/usr/lib64/pgsql/tutorial/advanced.sql
/usr/lib64/pgsql/tutorial/basics.source
/usr/lib64/pgsql/tutorial/basics.sql
/usr/lib64/pgsql/tutorial/complex.c
/usr/lib64/pgsql/tutorial/complex.so
/usr/lib64/pgsql/tutorial/complex.source
/usr/lib64/pgsql/tutorial/complex.sql
/usr/lib64/pgsql/tutorial/funcs.c
/usr/lib64/pgsql/tutorial/funcs.so
/usr/lib64/pgsql/tutorial/funcs.source
/usr/lib64/pgsql/tutorial/funcs.sql
/usr/lib64/pgsql/tutorial/funcs_new.c
/usr/lib64/pgsql/tutorial/syscat.source
/usr/lib64/pgsql/tutorial/syscat.sql
/usr/share/doc/postgresql-docs-9.2.24
/usr/share/doc/postgresql-docs-9.2.24/postgresql-9.2.24-US.pdf

References

Summary

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