Re: Relocatable Binaries (RPMs) : custom installation path for PostgreSQL

From: chiru r <chirupg(at)gmail(dot)com>
To: Kevin Brannen <KBrannen(at)efji(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Relocatable Binaries (RPMs) : custom installation path for PostgreSQL
Date: 2019-01-03 17:23:56
Message-ID: CA+RSxMhkRuqfE=PpgHD70VCREo-f95LNoY15yx=T621a5Em9_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-pkg-yum

Hi Kevin,

Thank you for the responce.

I have tried to intall the RPMs with -relocate option,however it is not
working as expected and throwing below error.

[root(at)Server1dev:/root/PG11]#
#-> rpm -ivh --relocate /usr/pgsql-11/=/u01/postgres/pg11_relocate/
postgresql11-server-11.1-1PGDG.rhel7.x86_64.rpm
warning: postgresql11-server-11.1-1PGDG.rhel7.x86_64.rpm: Header V4
DSA/SHA1 Signature, key ID 442df0f8: NOKEY
Preparing... #################################
[100%]
path /usr/pgsql-11 in package
postgresql11-server-11.1-1PGDG.rhel7.x86_*64 is not relocatable*
[root(at)server1dev:/root/PG11]#

Thanks,
Chiranjeevi

On Wed, Jan 2, 2019 at 1:25 PM Kevin Brannen <KBrannen(at)efji(dot)com> wrote:

> From: chiru r <chirupg(at)gmail(dot)com>
>
> > I have installed Community PostgreSQL RPMs and are going into "
> /usr/pgsql-11/" by default.
> > Please let us know how to get the PostgreSQL-11 installed in above
> custom paths using RPMs? .
>
>
> I've never tried it, but look at the "--relocate" option for the rpm
> command. The "--prefix" option might do it too, but I think "--relocate" is
> what you need.
>
> HTH,
> Kevin
>
>
> This e-mail transmission, and any documents, files or previous e-mail
> messages attached to it, may contain confidential information. If you are
> not the intended recipient, or a person responsible for delivering it to
> the intended recipient, you are hereby notified that any disclosure,
> distribution, review, copy or use of any of the information contained in or
> attached to this message is STRICTLY PROHIBITED. If you have received this
> transmission in error, please immediately notify us by reply e-mail, and
> destroy the original transmission and its attachments without reading them
> or saving them to disk. Thank you.
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Glenn Schultz 2019-01-03 17:57:33 query with regular expression
Previous Message Pavel Stehule 2019-01-03 12:11:36 Re: [unixODBC]Unrecognized key passed to SQLGetInfo. {S1C00,NativeErr = 209}

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Kevin Brannen 2019-01-04 15:08:14 RE: Relocatable Binaries (RPMs) : custom installation path for PostgreSQL
Previous Message Chapman Flack 2019-01-03 16:25:50 Re: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1