Installation of PostgreSQL Through YUM & RPM Methods

Share via:

Installation of PostgreSQL Through YUM & RPM Methods

These are another two methods of installation of PostgreSQL in Linux systems:

1 – YUM Installation.

2 – RPM Installation

Installation of PostgreSQL through YUM package manager in Linux System:

If you are using a Linux system, one of the most common ways to install software packages is by using a package manager. In Red Hat-based systems, the default package manager is yum (“Yellow dog Updater, Modified”).

First go to the official website postgresql.org and select Linux / red hat distribution or click on the direct link: PostgreSQL: Linux downloads (Red Hat family)

Navigate through the yum repository, and fill the following steps:

1 – Select version >> 11/12/13/14/15.

2 – Select Platform:

To know your oracle version run the following command in your Linux terminal:

3 – Select architecture >> x86_64 (default)

Now copy the setup script to run each command in the Linux terminal.

To verify the PostgreSQL is installed in your Linux system run the following command:

List the contents of the directory to ensure that PostgreSQL is Installed:

RPM INSTALLATION:

Before you install the application, it is recommended to check few prerequisites.

To check the version of GNU Make installed on your system, run the following command in the terminal:

There are also some Optional prerequisites that you may want to check:

Installation:
1 – Download the RPM Packages

Firstly, you should download the RPM packages from the official PostgreSQL Yum repository by the below steps:

As you have downloaded multiple RPM packages, you should install them in the following order:

  • Postgresql-libs
  • Postgresql
  • Postgresql-server
  • Postgresql-contrib

Now run the following commands in command line interface to download RPM packages in Linux System.

2 – Install the RPM Packages

After downloading the packages, you can install them using the rpm command as shown below:

3 – Verify the installation:

Author    : Prudhvi Teja

LinkedIn  : http://linkedin.com/in/prudhvi-teja-nagabhyru-715052224

Thank you for giving your valuable time to read the above information. Please click here to subscribe for further updates

KTExperts is always active on social media platforms.

Facebook  : https://www.facebook.com/ktexperts/
LinkedIn    : https://www.linkedin.com/company/ktexperts/
Twitter       : https://twitter.com/ktexpertsadmin
YouTube   :  https://www.youtube.com/c/ktexperts
Instagram  : https://www.instagram.com/knowledgesharingplatform

Share via:
Note: Please test scripts in Non Prod before trying in Production.
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Add Comment