sudo add-apt-repository ppa:pitti/postgresql sudo apt-get update sudo apt-get install postgresql-9.2 sudo apt-get install postgresql-contrib-9.2