Skip to content

Instantly share code, notes, and snippets.

@everaldo
Created August 16, 2014 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save everaldo/33502c952498137d8d83 to your computer and use it in GitHub Desktop.
Save everaldo/33502c952498137d8d83 to your computer and use it in GitHub Desktop.
Install Postgresql
# Postgresql
# https://wiki.postgresql.org/wiki/Apt
#Quickstart
#Create /etc/apt/sources.list.d/pgdg.list. The distributions are called codename-pgdg. In the example, replace wheezy with the actual #distribution you are using:
deb http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg main
#(You may determine the codename of your distribution by running lsb_release -c.)
#Import the repository key from https://www.postgresql.org/media/keys/ACCC4CF8.asc, update the package lists, and start installing #packages:
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql-9.3 pgadmin3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment