installing postgres if already installed from apt code example Example: install postgresql ubuntu sudo apt install postgresql postgresql-contrib