Installing Database
This guide explains how to install PostgreSQL 15.4 on Linux using the PostgreSQL APT repository.
Update and Install Prerequisites
sudo apt update && sudo apt upgrade -y
sudo apt install -y wget gnupg lsb-releaseAdd PostgreSQL APT Repository
wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.listInstall PostgreSQL 15.4
sudo apt updatesudo apt install -y postgresql-15Start and Enable PostgreSQL Service
Configure PostgreSQL
Last updated