Installing PostgreSQL 9.6 in Fedora 28/29/30

This guide explains about, How to install PostgreSQL 9.6 in Fedora 28/29/30. As of now PostgreSQL supports its latest version PostgreSQL 11 in Fedora 30. But still if you wish to install PostgreSQL 9.6 because of your application/language compatibility, this step by step guide will help you.

Step 1: Install PostgreSQL 9.6 Repo

Installing this repo will be make it available PostgresSQL via dnf installation. Run the following command.

dnf install https://download.postgresql.org/pub/repos/yum/9.6/fedora/fedora-31-x86_64/pgdg-fedora-repo-latest.noarch.rpm

Step 2: Install PostgreSQL and necessary dependencies

Now PostgreSQL is ready to install and proceed with the following installation command. These are the supported libraries are enough to run pg. i.e. postgresql96 postgresql96-server postgresql96-devel​ postgresql96-contrib

dnf install postgresql96 postgresql96-server postgresql96-devel​ postgresql96-contrib

Step 3: How to start the PostgreSql service?

To start the service use the following command.

service postgresql-9.6 start

Conclusion:

Now the service is started successfully. Further you will need to modify configuration file to allow access from your host. I will explain about configuration part in another page.


Cover image: PostgreSQL

Leave a Reply