Skip to content

Instantly share code, notes, and snippets.

@nomatteus
Last active August 29, 2015 14:05
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 nomatteus/b1c4fd4ced1dff745569 to your computer and use it in GitHub Desktop.
Save nomatteus/b1c4fd4ced1dff745569 to your computer and use it in GitHub Desktop.
CentOS 6 Postgres Install
sudo vi /etc/yum.repos.d/CentOS-Base.repo
# At the bottom of the [base] section, add a line that excludes the postgres packages:
exclude=postgresql*
# Add the same line to the bottom of the [updates]
exclude=postgresql*
# Use URL for your version of CentOS: http://yum.postgresql.org/repopackages.php
cd ~
curl -O http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-1.noarch.rpm
sudo rpm -ivh pgdg*
yum list postgres*
yum install postgresql93 postgresql93-server postgresql93-libs postgresql93-devel
service postgresql-9.3 initdb
chkconfig postgresql-9.3 on
service postgresql-9.3 start
gem install pg --no-rdoc --no-ri -- --with-pg-config=/usr/pgsql-9.3/bin/pg_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment