This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -eux | |
| sudo apt-get update | |
| packages="postgresql-$PGVERSION postgresql-server-dev-$PGVERSION postgresql-common" | |
| # bug: http://www.postgresql.org/message-id/20130508192711.GA9243@msgid.df7cb.de | |
| sudo update-alternatives --remove-all postmaster.1.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # remove existing 9.3 installation | |
| sudo /etc/init.d/postgresql stop | |
| sudo apt-get --force-yes -fuy remove --purge postgresql postgresql-9.1 postgresql-client | |
| # install 9.4 | |
| sudo apt-get install python-software-properties | |
| sudo add-apt-repository 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main 9.4' | |
| sudo apt-get update |