Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gf6jC-0008Ms-Oe for pgsql-general@arkaria.postgresql.org; Thu, 03 Jan 2019 17:24:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gf6j9-0000c7-5Z for pgsql-general@arkaria.postgresql.org; Thu, 03 Jan 2019 17:24:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gf6j8-0000bz-Nd for pgsql-general@lists.postgresql.org; Thu, 03 Jan 2019 17:24:14 +0000 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gf6j5-0006jh-Vp for pgsql-general@lists.postgresql.org; Thu, 03 Jan 2019 17:24:13 +0000 Received: by mail-lj1-x22e.google.com with SMTP id t18-v6so30321744ljd.4 for ; Thu, 03 Jan 2019 09:24:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FEv8URLK2ELhvIFl6zHeukoDwanJN9KBRuE3a9hzGVM=; b=sLJspYcXwkkAFilDW7Pe5qjkh4ergDBnmFYHxquzZKQ6UlWtV8HsAEJq3G1xvYBnCZ 45qXt16FYSh517Yk9Ux3VN0TgoWY7T7oVADm8Sxhj3Br20zt1vON8NanJkrGjwDzWLjs VNxxs5c0X6kH2HKPFFjhD09IxRDiapbQkE1BcfxMea2NAoCt9T6qxwOTV1m7vjgTtFYg 1hdR+tSGTfoIBtJjnk1GY5jo7BXkpJPwgqmfZCto3P3ZuT+NyftoUBpWuH6fS1P5Fw0v 796phG/ZrpwKh84eF84+yZMLHvEKwm4+QZmxSDLY3KNsTbhC3utG3UqsTWvMu7gH1XEk upAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FEv8URLK2ELhvIFl6zHeukoDwanJN9KBRuE3a9hzGVM=; b=CqJu6LZ91prMjCjvhxzvSmpcKXih0ytGmnqB5JVcr8cDErRZOS15J89/JEwFtl8M6Y Y8zl5RK13WNqIf/bftC4cS505HT8/yl7m6BPQghLnRgmAdNP8h6EQ4sBbHGZMOmUZFrm jEmDDzNm4YFVrkKz1Tkkx1vGhhDP5+bkVi0n9fc2Fj0nN4qAG0VwBxk+tSfOdyZnbKvm QTbq4cfswSN7UCwhZbErWGDJW1J9P1UNfljPuH/mezvEBuTujrrdrd8qAup7H5KsEbZr N/IlT5wBL0ZKFoKdaSPeqCS8N70uLh0DuxtMy6E6Kotyb9JcNODlsWoeqa8GKg5m1Ve+ Hwuw== X-Gm-Message-State: AJcUukeMyL0BAdU/TyfJ7+Fwu+cI6peWB9VPeyUvBKWmw+dTRA6zhIQE LSjrqbdCi8K3yCwyzFJQxDVZ8rLcwKZa+L8hGEKnQvw8 X-Google-Smtp-Source: ALg8bN6rC9oSdUAjbjwSn80PZ5ek+dUgERiHaKqJU6OCSo+GDA8aOir1WTPKacNNYyK3Qs1YaYIYWyTiXADPuiSBb/c= X-Received: by 2002:a2e:94ce:: with SMTP id r14-v6mr27128173ljh.34.1546536249412; Thu, 03 Jan 2019 09:24:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: chiru r Date: Thu, 3 Jan 2019 12:23:56 -0500 Message-ID: Subject: Re: Relocatable Binaries (RPMs) : custom installation path for PostgreSQL To: Kevin Brannen Cc: "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000c75007057e91071e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000c75007057e91071e Content-Type: text/plain; charset="UTF-8" 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@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@server1dev:/root/PG11]# Thanks, Chiranjeevi On Wed, Jan 2, 2019 at 1:25 PM Kevin Brannen wrote: > From: chiru r > > > 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. > --000000000000c75007057e91071e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Kevin,

T= hank you for the responce.

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

[root@Server1dev:/root/PG11]#<= br>#-> rpm -ivh --relocate /usr/pgsql-11/=3D/u01/postgres/pg11_relocate/= postgresql11-server-11.1-1PGDG.rhel7.x86_64.rpm
warning: postgresql11-s= erver-11.1-1PGDG.rhel7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 442= df0f8: NOKEY
Preparing...=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ################################# [100%]
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 path /usr/pgsql-11 in package po= stgresql11-server-11.1-1PGDG.rhel7.x86_64 is not relocatable
[root@server1dev:/root/PG11]#


Thanks,
Chiranjeevi


On Wed, Jan 2, 2019 at 1:25 PM Kevin Br= annen <KBrannen@efji.com> wr= ote:
From: chiru r <chirupg@gmail.com>

> I have installed Community=C2=A0 PostgreSQL RPMs and are going into &q= uot; /usr/pgsql-11/" by default.
> Please let us know how to get the PostgreSQL-11 installed in above cus= tom 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 thi= nk "--relocate" is what you need.

HTH,
Kevin


This e-mail transmission, and any documents, files or previous e-mail messa= ges attached to it, may contain confidential information. If you are not th= e intended recipient, or a person responsible for delivering it to the inte= nded recipient, you are hereby notified that any disclosure, distribution, = review, copy or use of any of the information contained in or attached to t= his message is STRICTLY PROHIBITED. If you have received this transmission = in error, please immediately notify us by reply e-mail, and destroy the ori= ginal transmission and its attachments without reading them or saving them = to disk. Thank you.
--000000000000c75007057e91071e--