- Ubuntu
- Package management
- here
Installing postgresql-client-PostgreSQL database client
Install "postgresql-client" with the apt command so that you can use the PostgreSQL database client application "psql".
sudo apt install -y postgresql-client
Confirm that the pg command has been installed
Make sure you have the PostgreSQL pg command installed.
psql --version
It is installed when the version information is displayed as shown below.
psql (PostgreSQL) 10.12 (Ubuntu 10.12-0ubuntu0.18.04.1)