Wednesday , October 5 2022

How To Install PostgreSQL 13 On Centos 7

In today’s article, we will look for an answer to the question of how to install PostgreSQL 13 on Centos 7.

PostgreSQL is one of the powerful open source databases as we all know. Since PostgreSQL 13 version is realese recently, I wanted to install it on Centos 7 and try it.

If you want to take a look at some of the new features before proceeding with the PostgreSQL installation, you can refer to my article named PostgreSQL 13 What’s New.

First, we download the postgresql 13 repo as follows.

After successfully downloading our repo, we install all the packages with the help of the following command so that there is no problem when we install an extension or install any module.

If you get an error like the following while installing. You can use the article named llvm-toolset-7 installation.

Error: Package: postgresql13-devel-13.0-1PGDG.rhel7.x86_64 (pgdg13)
Requires: llvm-toolset-7-clang >= 4.0.1
You could try using –skip-broken to work around the problem 

After our service is installed, with the help of the following command, we ensure that the files required for our cluster are installed in the default directory with the help of the following command. If you want to install the cluster files in a different directory, you can use the PostgreSQL 11 Installation article.

Our cluster files are initialized to the default directory. Let’s enable our service with the help of the following command.

We initialized our cluster files to the default directory. Let’s enable our service with the help of the following command.

Our service is enabled. Let’s start our postgresql-13 service with the help of the command below.

 

Faruk Erdem
Author: Faruk Erdem

About Faruk Erdem

Leave a Reply

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