
We need to initialize the database server for configuration files to be generated. Step 3: Initialize and start database service Install 2 Packages (+1 Dependent package)įor any successful installation on Amazon Linux 2 a Complete message should be printed. Review the list of dependencies to be installed and agree to proceed with the installation. sudo yum install postgresql12 postgresql12-server Once the repository has been added we can install PostgreSQL server and client packages on Amazon Linux 2 by using the following commands.

sudo yum makecache Step 2: Install PostgreSQL 12 on Amazon Linux 2 Name=PostgreSQL 12 for RHEL/CentOS 7 - x86_64 To add official PostgreSQL repository to Amazon Linux 2 server, run the following commands as root or user account with sudo privileges. $ sudo amazon-linux-extras | grep postgreĤ1 postgresql11 available Next we need to add the PostgreSQL repository to our Amazon Linux 2 machine for us to be able to install packages.The packages are available in Amazon extras repos. sudo yum -y update Step 1: Add PostgreSQL Yum Repository to Amazon Linux 2 Once the system is ready, update installed packages to the latest available releases. User account with sudo or root user credentials.Before you begin installation confirm you have met the following minimum requirements. It doesn’t need to be running in an AWS cloud but can also be in a Virtualized environment within your Infrastructure or Laptop with use of VirtualBox, KVM, VMware or with the help of tools like Vagrant. This installation will be performed on Amazon 2 Linux server. The official documentation has vast amount of information on the architecture, features, installation and day 2 related usage of PostgreSQL database server. The PostgreSQL database server have been in active development for over 30 years that has earned it a strong reputation for reliability, feature robustness, and performance.



As of this article writing the latest available release of PostgreSQL database server is version 12. The original name was POSTGRES, referring to its origins as a successor to the Ingres database developed at the University of California, Berkeley. PostgreSQL is a powerful, free and open-source relational database management system with SQL compliance. In this short tutorial I’ll guide you through the installation of PostgreSQL 12 on Amazon Linux 2.
