How to install PostgreSQL 10 in Linux From Repository

Two Methods of installing PostgreSQL 10

PostgreSQL can be installed by means of two ways

  1. Installing from source
  2. Installing binary packages

Each method has its own advantages and disadvantages, however, we will limit this post to learn how to install PostgreSQL using binaries packages.

The most common way of installing the PostgreSQL using binary packages is RPM-based, the list of repositories provided by the community version of PostgreSQL can be found here.

In the last post, we learned how to install PostgreSQL using source code, In this tutorial, we will learn the installation process of PostgreSQL 10 in Linux from the Yum repository.

PostgreSQL 10 Linux Install – Yum Repository Method [step by step]:

I assume that all the prerequisites for installing PostgreSQL have met, I highly recommend to follow this link to learn more about prerequisites.

To use the PostgreSQL Yum Repository, follow these steps:

  • Open the following link to select Linux version.

Choose the following things from the repository list

  1. Select Version (I choose 10)
  2. Select Platform  (I choose Rhel 6)
  3. Select Architecture  ( I choose x86_64)
  • Install the repository RPM:

  • Install the client packages

  •  Install the server packages

  • Initialize the database and enable automatic start

  • Confirm PostgreSQL installation

Words from postgreshelp

Thank you for giving your valuable time to read the above information. I hope the content served your purpose in reaching out the blog.
Suggestions for improvement of the blog are highly appreciable. Please contact us for any information/suggestion/feedback.

If you want to be updated with all our articles

please follow us on Facebook Twitter
Please subscribe to our newsletter.

Leave a Reply