Install PostgreSQL on CentOS 8

Download and install the latest repo RPM from

# dnf install -y

Disable the built-in PostgreSQL module:

# dnf -qy module disable postgresql

Install PostgreSQL:

# dnf install -y postgresql12-server

Optionally initialize the database and enable automatic start:

# /usr/pgsql-12/bin/postgresql-12-setup initdb
# systemctl enable postgresql-12
# systemctl start postgresql-12

Leave a Reply

Your email address will not be published. Required fields are marked *