Skip to content

Instantly share code, notes, and snippets.

@Ch4s3
Last active October 26, 2023 01:11
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save Ch4s3/d2270e8f3d30cadcce859b84d707c794 to your computer and use it in GitHub Desktop.
Save Ch4s3/d2270e8f3d30cadcce859b84d707c794 to your computer and use it in GitHub Desktop.
steps for installing postgres 9.6 on Centos7 or RHEL

Update the RPM package

rpm -ivh https://yum.postgresql.org/9.6/redhat/rhel-7.3-x86_64/pgdg-centos96-9.6-3.noarch.rpm

Update packages

yum update

Install Postgres

yum install postgresql96 postgresql96-server postgresql96-libs postgresql96-contrib postgresql96-devel

Initialize the DB

/usr/pgsql-9.6/bin/postgresql96-setup initdb

Start the Postgres service

systemctl enable postgresql-9.6.service
systemctl start postgresql-9.6.service 
@mtahle
Copy link

mtahle commented Sep 28, 2022

Retrieving https://yum.postgresql.org/9.6/redhat/rhel-7.3-x86_64/pgdg-centos96-9.6-3.noarch.rpm
curl: (22) The requested URL returned error: 404 Not Found
error: skipping https://yum.postgresql.org/9.6/redhat/rhel-7.3-x86_64/pgdg-centos96-9.6-3.noarch.rpm - transfer failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment