pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rob stone <floriparob@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to install PostgreSQL binaries on a different directory than the default one
Date: Sat, 03 Apr 2021 11:25:29 +1100
Message-ID: <3782addfe5715659f18f4af64baac84dabc38c7e.camel@gmail.com> (raw)
In-Reply-To: <CY4PR04MB04708D1056C0F1E29FA8AB94D97A9@CY4PR04MB0470.namprd04.prod.outlook.com>
References: <CY4PR04MB04708D1056C0F1E29FA8AB94D97A9@CY4PR04MB0470.namprd04.prod.outlook.com>

Hello,

On Fri, 2021-04-02 at 22:01 +0000, Allie Crawford wrote:
> Hi,
> I am new in postgresql and I am trying to install PostgreSQL on Linux
> server but instead of using the default location for the binaries I
> want to install them in a different directory.
> I have research for a while and I cannot find any information on how
> to do that using the dnf utility which is what the PostgreSQL website
> gives me as instruction when I go the download page.
>  
> I have a directory called /pg01 that I want to use to install the
> binaries. The postgreSQL download site (
> https://www.postgresql.org/download/linux/redhat/ ) gives me the
> following steps to install the binaries:
>  
>  
> That set of instructions shown right above, installs the binaries
> under the/usr/pgsql-13, and what I want is to install the binaries
> under /pg01 instead of /usr.
> My question is, what are the changes I need to do in the instructions
> detailed right above, so that I can get the binary installation under
> the /pg01 directory instead of the default /usr directory.
>  
> Thanks in advance for any help you can five me on this.
>  
> Regards,
> Allie

Most Linux distros keep the binaries by major version. So when you
install version 14 it will go into /usr/pgsql-14.
Thus, by using different port numbers you can run multiple versions on
the same box.
Useful for development, QA, etc.

HTH,
Robert







view thread (3+ messages)  latest in thread

Message-ID: <3782addfe5715659f18f4af64baac84dabc38c7e.camel@gmail.com>
Permalink:  ../3782addfe5715659f18f4af64baac84dabc38c7e.camel@gmail.com/
Also on:    postgresql.org/message-id/3782addfe5715659f18f4af64baac84dabc38c7e.camel@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: floriparob@gmail.com
  Subject: Re: How to install PostgreSQL binaries on a different directory than the default one
  In-Reply-To: <3782addfe5715659f18f4af64baac84dabc38c7e.camel@gmail.com>
  References: <CY4PR04MB04708D1056C0F1E29FA8AB94D97A9@CY4PR04MB0470.namprd04.prod.outlook.com> <3782addfe5715659f18f4af64baac84dabc38c7e.camel@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox