#database #linux #postgresql #tools
To install the psql client version 16 on Ubuntu, you need perform a couple of steps.
First, update the package index and install required packages:
1sudo apt update
2sudo apt install gnupg2 wget nano
Add the PostgreSQL 16 repository:
1sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
Import the repository signing key:
1curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
Update the package list:
1sudo apt update
Then, install the PostgreSQL 16 client:
1sudo apt install postgresql-client-16
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.