Installing PostGreSQL 11 on Fedora 29

xw19 Published on: 2018-12-06

The following commands on the terminal will install PostGreSQL 11 from PGDG repo

 

sudo yum install https://download.postgresql.org/pub/repos/yum/11/fedora/fedora-29-x86_64/pgdg-fedora11-11-2.noarch.rpm
sudo yum install update
sudo yum install postgresql11 postgresql11-server postgresql11-contrib postgresql11-libs
sudo su - postgres
cd /usr/pgsql-11/bin
rm -rf /var/lib/pgsql/11/data/*
./initdb -D /var/lib/pgsql/11/data/
sudo systemctl start postgresql-11
sudo systemctl enable postgresql-11