Step 1: Update APT $ sudo apt update $ sudo apt upgrade step:2 Download and Install PostgreSQL Client $ sudo apt install postgresql-client. step:3 Connect to PostgreSQL $ psql -h postgre-server -U postgre-user