sudo apt-get -y install postgresql code example Example: how to install psql in ubuntu sudo apt-get install postgresql