Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSU6d-0007v8-6C for pgsql-general@arkaria.postgresql.org; Sat, 03 Apr 2021 00:25:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lSU6b-0000SK-Oy for pgsql-general@arkaria.postgresql.org; Sat, 03 Apr 2021 00:25:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSU6b-0000SD-Dv for pgsql-general@lists.postgresql.org; Sat, 03 Apr 2021 00:25:37 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lSU6Y-0001iI-RF for pgsql-general@lists.postgresql.org; Sat, 03 Apr 2021 00:25:36 +0000 Received: by mail-pg1-x531.google.com with SMTP id p12so420471pgj.10 for ; Fri, 02 Apr 2021 17:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=gLtcVx6ivOJ+VOkqHl67oNvK1HtAyhbH6jrKXkjQNiI=; b=QtOzhEsurTncVLr0sCuDa7TV6voQtINOfPRPRhzdYmacDJFl+wpVEuP1hg7dE8D033 kr0dhVxxNfmQk6f7dj0GauqIjTXsCIIOFRDAHIQAmsH8DE4ZzZ+IuYCPi+lLfF6HFKPu 1xLMABsZ8id7lYenRaJHuNktnpTY+8QxyLSgt5ZVXPxBxgzhx/zt8eZPceJiwjq99PQI eFVSNKbbNUKAU7eKqNiclx0yXDIQl7zkSljtB0+YhsSTO3i0pAGAwaVBSPvSJ3F8udG9 /FMi1YGwAz6zAAHROuacV9e/Z9bMAqUkRorZvHrwi6G27J/cs4AmJLft2vlMgb09ISIM mfPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=gLtcVx6ivOJ+VOkqHl67oNvK1HtAyhbH6jrKXkjQNiI=; b=CbdnWhFMFSL0WG/Bgcn7LtD15XQ8XshSbcml2IPqqChm5rS7MALzoXmtA4AuVEAkQN ijhGoKzChZLxzcOX2LfFf8BaAD4GPG9Hxhte7sEp31PTCcVpO0jH4oDUNSwdRQNe/MDe Br9lxXDWBxA9zT+S9oyXuiWATMgzLVRzxyUT0StVUQqoVQkINMbwbYkxOHNfh1F0l9+q jwlXnVK2Zqtb3n9ZhQbJt2zUsZLyLDAEg6UjLBlHYDALba/NuZsg4JyxznDTPc4f2pZv cmuUYrGVaiBd4MjmBr8fFuz576rBXBgz3MWrZ14JhV5PfDZ7NxQ10nrHgqUIXA8s6pCt tJWw== X-Gm-Message-State: AOAM5319ulzJbmzU39LCr1/rTuuy5s4e8BBDegOaVPD/R1wOGT+hsF1s m39rvVEJBxiXvV2gxPrr0dwbjhlF6I2ucw== X-Google-Smtp-Source: ABdhPJwmlOg+FBchosvkbIRyf0+WbNK55bEnyjX8hLhbGazcIRBw89tNqXHjdB0fdNAPEg3jzP7v1g== X-Received: by 2002:a63:c741:: with SMTP id v1mr13680558pgg.207.1617409533433; Fri, 02 Apr 2021 17:25:33 -0700 (PDT) Received: from [192.168.1.101] (14-201-251-26.tpgi.com.au. [14.201.251.26]) by smtp.gmail.com with ESMTPSA id w15sm8784972pfn.84.2021.04.02.17.25.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Apr 2021 17:25:33 -0700 (PDT) Message-ID: <3782addfe5715659f18f4af64baac84dabc38c7e.camel@gmail.com> Subject: Re: How to install PostgreSQL binaries on a different directory than the default one From: rob stone To: pgsql-general@lists.postgresql.org Date: Sat, 03 Apr 2021 11:25:29 +1100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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