Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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:
# Add the same line to the bottom of the [updates]
# Use URL for your version of CentOS:
cd ~
curl -O
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