Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1shMGR-00GoM0-Sh for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2024 04:51:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1shMFR-009O34-KH for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2024 04:50:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1shMFR-009O2w-5t for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2024 04:50:05 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1shMFP-0010ZM-4n for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2024 04:50:04 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-5334b7c9bb2so308608e87.1 for ; Thu, 22 Aug 2024 21:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724388601; x=1724993401; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=G5LhFJ6f/kEG8nALXSrUU2/Lue9acsbpaP51G3P39HY=; b=WVU/bHiwokFRAuqMGqlWIIN89WU/bIVp7DvgeDR3er+oHL7fOHm4nA522kiNCjPrYL RYsX8XhlNPs5I4M0A72B7xo9D8TI/fNfYDh1Mv3JTpzzHdZRrhPBu/2iwCgFwOI48N97 z+3W9KhN/OlOY4T3dtFXOVKd2ignhZXGLBr7w/9/6v6uqouqzhL+SKK1sm1cP2Lczte3 +17BFxBRruWA4pxwWF31xRcaWSJcpjdatHOaWSKLm7HhvR3qbb9FQE4/EMHs/rrEX23k bIBiIu6b3Be9cnomBnY02H6ERZUHA+3m/XC0GpucxsxRnwVRhnzmQmzurKxgcW+83oCm VUXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724388601; x=1724993401; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G5LhFJ6f/kEG8nALXSrUU2/Lue9acsbpaP51G3P39HY=; b=rA4tBBkb6Dm5VUTt88AUaHMp5kGZhFZuGIMk/diDGjVYw4OAf5aaQlB1qoc+CB6LaU 6AbpwUsQfRkjaMJLTyeX6AE/NGbUl/nSWyeWfcS64ZC7JULKt+dkcNGA+lfWfuhQPNpV j6Yq5DakNhrIg7ECO9plbdDKyeKKQYNeKWf6TDRicXDwVkbu86ipndxCrAAm97HeobDG hRg1ehPpn+FjUF/LFW+n8oLtwUAkNQbmsEdzPfn9hYFXgazNKIdbIND7ikuhQ3ubC3qe vw2qu/EwKb+LgYUutOp94t24DFq+MVhvAWpPaUugD33n4t4hLzScZVFuEPrJhvz4VYKf z68Q== X-Forwarded-Encrypted: i=1; AJvYcCVSZH6r+a3nqOdGKfHnBKacFlAWj06+pxl7rSfghwdIhMELFPpJvz8sXOQH9m84CCOVk+AuA6wXu0WCR22i@lists.postgresql.org X-Gm-Message-State: AOJu0YyQamGtul+Hwm1n44zvYLmNqnfCDcN6UB4lv1NI6GoY7UwA6283 SK3X+W+KTMAFE5vOWaxUZIWrIzLLs7yZPdm3UK4lnnP1z6RS1pRostL/T4W2xyXcztUp8LEQ37u QCCG9Az6UgtZQ4lD7l9xvLMrwfWA= X-Google-Smtp-Source: AGHT+IGf5rBAwgBZXZPXTTwwNqpqs7iAfN/pXoF2ll0KvUtI6TqsQ/rjrq4Q27GEf1z8E1r7UM1EFSnT+xJrO9aIG14= X-Received: by 2002:a05:6512:3b98:b0:52f:cad0:2d4a with SMTP id 2adb3069b0e04-534387cd659mr277321e87.9.1724388600599; Thu, 22 Aug 2024 21:50:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Muhammad Ikram Date: Fri, 23 Aug 2024 09:49:44 +0500 Message-ID: Subject: Re: where is postres installed? To: Muhammad Usman Khan Cc: Arbol One , pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000fe639606205281f3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000fe639606205281f3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Arbol, Hope above response from Usman must have resolved your issue. You may also try by finding any binary of PostgreSQL. e.g. find /usr -name pg_ctl /usr/local/pgsql/bin/pg_ctl /usr/lib/postgresql/16/bin/pg_ctl Regards, Ikram On Fri, Aug 23, 2024 at 9:33=E2=80=AFAM Muhammad Usman Khan wrote: > Hi Arbol, > > You can try from the following commands: > > dpkg-query -L postgresql-16 > which psql > sudo find / -name "postgres" 2>/dev/null > > On Fri, 23 Aug 2024 at 05:35, Arbol One wrote: > >> After installing PostgreSQL on my Debian-12 machine, I typed 'postgres >> --version' and got this msg: >> *bash: postgres: command not found* >> >> 'psql --version', however, does work and gives me this message : >> >> *psql (PostgreSQL) 16.3 (Debian 16.3-1.pgdg120+1)* >> >> Obviously postgres is not in the path, but I don't know where the >> 'apt-get' installed it or why it did not add it to the path. >> >> Is there a way I can locate the installation directory? >> >> Thank in advance. >> -- >> *ArbolOne.ca* Using Fire Fox and Thunderbird. ArbolOne is composed of >> students and volunteers dedicated to providing free services to charitab= le >> organizations. ArbolOne on Java Development is in progress [ =C3=AD ] >> > --=20 Muhammad Ikram --000000000000fe639606205281f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Arbol,

Hope above r= esponse from Usman must have resolved your issue. You may also try by findi= ng any=C2=A0 binary of PostgreSQL. e.g.=C2=A0

=C2= =A0find /usr -name pg_ctl
/usr/local/pgsql/bin/pg_ctl
/usr/lib/postgr= esql/16/bin/pg_ctl

Regards,
Ikram


On Fri, Aug 23, 2024 at 9:33=E2=80=AFAM Muhammad Us= man Khan <usman.k@bitnine.net= > wrote:
Hi Arbol,

You can try from the following commands:
=
dpkg-query -L postgresql-16
which psql
sudo find / -name "postgres" 2>/dev/null

On Fr= i, 23 Aug 2024 at 05:35, Arbol One <ArbolOne@hotmail.ca> wrote:
=20

After installing PostgreSQL on my Debian-12 machine, I typed 'postgres --version' and got thi= s msg:
bash: postgres: command not found

'psql --version', however, does wor= k and gives me this message :

psql (PostgreSQL) 16.3 (Debian 16.3-1.pgdg120+1)

Obviously postgres is not in the path, but I don't know where the 'apt-get' installed it or why it= did not add it to the path.

Is there a way I can locate the installation directory?

Thank in advance.

--
ArbolOne.ca Using Fire Fox and Thunderbird. ArbolOne is composed of students and volunteers dedicated to providing free services to charitable organizations. ArbolOne on Java Development is in progress [ =C3=AD ]


--
Muhammad Ikram

--000000000000fe639606205281f3--