
Before we install any software, it’s important to make sure your system is up to date by running the following apt commands in the terminal: sudo apt update sudo apt upgrade sudo apt install wget software-properties-common apt-transport-https gnupg gnupg2 Step 2. Step 1: Add PostgreSQL 13 repository Before configuring the APT repository import the GPG key used for signing packages: sudo apt update sudo apt -y install gnupg2 wget -quiet -O - sudo apt-key add - After importing GPG key, add PostgreSQL repository to your Debian system. We recommend installing PostgreSQL this way since it ensures a proper integration with the operating system, including automatic patching and other update management functionality. Install pgAdmin on Debian 11 Bullseye Step 1. Install PostgreSQL on Ubuntu Install PostgreSQL from the Official Ubuntu Repository This tutorial will show you how to install and use the version available by default with your version of Ubuntu and how to install it by adding the PostgreSQL repository and installing the same. Most Linux distributions such as Debian, CentOS, openSUSE, and Ubuntu have PostgreSQL integrated with their package management. PostgreSQL, also known as “Postgres,” is an advanced, enterprise-class open-source relational database management system (ORDBMS). A worldwide team of volunteers developed it, and it is pretty popular due to its stability and advanced features.Īny corporation or other private entity does not control PostgreSQL, and the source code is available free of charge.

This article will cover how to install PostgreSQL on Ubuntu from the official Ubuntu repository or by adding the PostgreSQL repository and installing the same.
