sudo apt-get update postgresql code example Example: install postgresql ubuntu sudo apt install postgresql postgresql-contrib