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 1geR32-0000be-K1 for pgsql-general@arkaria.postgresql.org; Tue, 01 Jan 2019 20:54:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1geR30-0001Lk-9o for pgsql-general@arkaria.postgresql.org; Tue, 01 Jan 2019 20:53:58 +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 1geR2z-0001LI-OU for pgsql-general@lists.postgresql.org; Tue, 01 Jan 2019 20:53:58 +0000 Received: from sonic314-27.consmr.mail.ne1.yahoo.com ([66.163.189.153]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1geR2r-0007Am-Rl for pgsql-general@postgresql.org; Tue, 01 Jan 2019 20:53:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1546376027; bh=K5R0HjHSjvFjDoIimw5McyzcryyBS3WosDfCwhuaN9o=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=OuFAidW9Pf2kf9NUfZ7I2dxjet5D+mNdHUYiPJJjNoo+b0Tyjs0mJQ4hMoNYN5jTPTTu9p6TQ1t/GB5t6g6TXvgi/nTsnB+oL+px+gRi1EBHLfs92WUE79w/3cn2u/FefIIbjbnXYTjVKA/Ibn6v6deazWSoh/ZTOH87cVmAdQCU83EHBKGN5srkBtTFRuP7brMCO9lgIhyp4Pl4afekzaGlmlODHftC2Ok4UHybL3IABtZTqUkFq1UI1Zxp8IjMmfPPaqIJVMsH65lVLHoL/Kepwt1yYfzXvmTXIzYcze7TsoCu9Wz8RSp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_K ifkRcHMr5Tw0mAin6ZgmhyoW4UloAw59b6NiZcbelC.LQtgEhRn84wVyVOkl8bKx8RvAi3MU93eX AbZbOOLrFA98n0KQF8QoaTXDJP1zGPr1h6kAe7UfxqPZlGinTvsASRj9kLlWCY5goynEJKg_LtMF Dvnjrt47vPqL86tQ96BmKC4s98jXRRP3vS.WjbKBQrhQGnWZm Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Tue, 1 Jan 2019 20:53:47 +0000 Date: Tue, 1 Jan 2019 20:53:45 +0000 (UTC) From: Brent Wood Reply-To: Brent Wood To: chiru r , Forums postgresql Message-ID: <412458701.4798790.1546376025600@mail.yahoo.com> In-Reply-To: <61fe5d5d-12d5-eb0c-be09-fb12809fa866@aklaver.com> References: <61fe5d5d-12d5-eb0c-be09-fb12809fa866@aklaver.com> Subject: Re: Relocatable Binaries (RPMs) : custom installation path for PostgreSQL MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4798789_312170313.1546376025599" X-Mailer: WebService/1.1.12857 YahooMailNeo Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0 Content-Length: 6221 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_4798789_312170313.1546376025599 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Have you considered symlinking the default paths to where you want it to re= side? That approach would allow updates & upgrades to work as they expect, withou= t changing default paths or config files. Much as described here:https://help.cloud66.com/rails/how-to-guides/databas= es/shells/change-psql-directory.html Cheers, =C2=A0 Brent Wood =20 On 12/31/18 8:19 AM, chiru r wrote: > Hi All, >=20 > I wanted to install the PostgreSQL-11 Software with Custom=20 > installation/binary paths. >=20 > Currently I am using EDB one click installer software with option file=20 > like below to achieve, However EDB stopped and no longer provides one=20 > click installer for Linux. >=20 > *Example:* >=20 > PostgreSQL install software file : *postgresql-9.6.9-1-linux-x64.run* >=20 > *cat Optionsfile.txt* > mode=3Dunattended > datadir=3D/u02/pgdata01/9.6/data > serverport=3D5432 > prefix=3D/u01/postgres/9.6 > I have installed CommunityPostgreSQL RPMs and are going into=20 > "/usr/pgsql-11/" by default. >=20 > #-> pwd > /usr/pgsql-11 >=20 > [root@user:/usr/pgsql-11]# >=20 > #-> ls -l > total 16 >=20 > drwxr-xr-x 2 root root 4096 Dec 21 13:49 bin > drwxr-xr-x 3 root root 4096 Dec 21 13:49 doc > drwxr-xr-x 3 root root 4096 Dec 21 13:49 lib > drwxr-xr-x 8 root root 4096 Dec 21 13:49 share >=20 > Please let us know how to get the PostgreSQL-11 installed in above=20 > custom paths using RPMs? . >=20 >=20 > Thanks, >=20 > Chiranjeevi>=20 =20 ------=_Part_4798789_312170313.1546376025599 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Have you considered symlinking the default paths = to where you want it to reside?

Tha= t approach would allow updates & upgrades to work as they expect, witho= ut changing default paths or config files.

Much as described here:



Cheers,

  Brent Wood



On 12/31/18 8:19 AM, chiru r wrote:
> Hi All,
>
> I wa= nted to install the PostgreSQL-11 Software with Custom
&= gt; installation/binary paths.
>
&g= t; Currently I am using EDB one click installer software with option file <= br clear=3D"none">> like below to achieve, However EDB stopped and no lo= nger provides one
> click installer for Linux.
>
> *Example:*
> =
> PostgreSQL install software file : *postgresql-9.6.= 9-1-linux-x64.run*
>
> *cat Opti= onsfile.txt*
> mode=3Dunattended
>= ; datadir=3D/u02/pgdata01/9.6/data
> serverport=3D5432=
> prefix=3D/u01/postgres/9.6
> I= have installed CommunityPostgreSQL RPMs and are going into
> "/usr/pgsql-11/" by default.
>

> #-> pwd
> /usr/= pgsql-11
>
> [root@user:/usr/p= gsql-11]#
>
> #-> ls -l
> total 16
>
> d= rwxr-xr-x 2 root root 4096 Dec 21 13:49 bin
> drwxr-xr= -x 3 root root 4096 Dec 21 13:49 doc
> drwxr-xr-x 3 ro= ot root 4096 Dec 21 13:49 lib
> drwxr-xr-x 8 root root= 4096 Dec 21 13:49 share
>
> Ple= ase let us know how to get the PostgreSQL-11 installed in above
> custom paths using RPMs? .
>
>
> Thanks,
>
> Chiranjeev= i
>

------=_Part_4798789_312170313.1546376025599--