- install postgreSQL
sudo apt install postgresql
- set password :
sudo -u postgres psql template1
ALTER USER postgres with encrypted password 'my_passwordy';
\q
- create a database :
sudo -i -u postgres
psql
CREATE DATABASE my_db;
\q
exit
- check the version :
pg_lsclusters
# or :
sudo -i -u postgres
psql
SELECT version();
\q
# or :
dpkg -l | grep postgresql