Lesson 2.2 — Installing PostgreSQL 17 (Guided Lab)

Click on the "Edit" button in the top corner of the screen to edit your slide content.

Lab Goal: Install PostgreSQL 17 safely using PGDG.

sudo apt update

sudo apt install curl ca-certificates gnupg2 -y

curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg

echo "deb [signed-by=/etc/apt/trusted.gpg.d/postgresql.gpg] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list

sudo apt update

sudo apt install postgresql-17 postgresql-client-17 -y

Verification

pg_lsclusters

Rating
0 0

There are no comments for now.

to be the first to leave a comment.