Skip to content

Instantly share code, notes, and snippets.

@pindlebot
Last active September 19, 2018 22:54
Show Gist options
  • Select an option

  • Save pindlebot/5e278f79aa759afd84b813eccd66772e to your computer and use it in GitHub Desktop.

Select an option

Save pindlebot/5e278f79aa759afd84b813eccd66772e to your computer and use it in GitHub Desktop.
sudo su -
yum install -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-redhat10-10-2.noarch.rpm
yum install -y postgresql10
sed -i "s/rhel-\$releasever-\$basearch/rhel-latest-x86_64/g" "/etc/yum.repos.d/pgdg-10-redhat.repo"
ln -s /usr/pgsql-10/bin/psql /usr/bin/psql
# test: https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/postgresql10-test-10.5-1PGDG.rhel7.x86_64.rpm
# server: https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/postgresql10-server-10.5-1PGDG.rhel7.x86_64.rpm
# contrib https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/postgresql10-contrib-10.5-1PGDG.rhel7.x86_64.rpm
# docs: https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/postgresql10-docs-10.5-1PGDG.rhel7.x86_64.rpm
# libs: https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/postgresql10-libs-10.5-1PGDG.rhel7.x86_64.rpm
# https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/postgresql10-10.5-1PGDG.rhel7.x86_64.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment