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 1shMmF-00H40K-Kh for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2024 05:23:59 +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 1shMmD-009kwk-NT for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2024 05:23:58 +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 1shMmD-009kvm-90 for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2024 05:23:57 +0000 Received: from mail-vk1-xa34.google.com ([2607:f8b0:4864:20::a34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1shMmB-0010mL-A1 for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2024 05:23:56 +0000 Received: by mail-vk1-xa34.google.com with SMTP id 71dfb90a1353d-4fce9f16f83so503719e0c.1 for ; Thu, 22 Aug 2024 22:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724390634; x=1724995434; 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=zyFAtdQqk39aEBtqQRu9R23Ubaet8kEfSO9nFfNtqYQ=; b=EXBG+2fSwM9yKcNzeKHBqDphr1eWc2GgIaJWMVAt3u7wjn4QyIfd1dvQdn6lsp4/h8 rIVYr+DGvzUJ5wOG2+OXBJ2mDFqWDXhXr7G74niFPL5h9hsgqkjDvq+stYY0D6jyY12y 6W6aP0YkswFDkx8oAkEzL/XCQVdCq2VNO5mjzmJ1SjYH1qypDhgUxsqt97f78WdbUCzq NhuG3cog2Jbhi4GSd498bXCaUKDwWvmhOiiCZrd717Yk7NyaDqLVH5hvmTpW1XM8TCfk pEA4FUJqSiMLsvqzxQu7djB0NDfBUtQVupbZhjVSWEYzsvtbpAEkzrWcEazw4iCEddwB 2rxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724390634; x=1724995434; 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=zyFAtdQqk39aEBtqQRu9R23Ubaet8kEfSO9nFfNtqYQ=; b=mNAzibyIhsIftD6a7VeFpvSmjIJ+1BOwI3PIPSOhSbWZLmlexlveGxJVnrCOA/kYS6 hx9hjG+81r6rdD4hH5777JStzw4XjUlJSiRtoDqnApGR2ChmML1x0hZbrhpi6WNDGd66 zm085R+JU4JWi21XGpQScdpqL6ajxT7V8vuRpL9y0bN/rvIV8kUE7O+Y6mWwHRLXVj6q u9pUKIYPaONjwQKb+ewuuYScpVSHw6inOjKU+Ku/7FwT0m6gUxlOUpIkfskhhi3hLoax j4qfvFrZagS6DrK0VaYnOxGRgfJzQW9w27sJvAq2tSwWPcRCcS10El68s+h3y5QdWI0X Ypkw== X-Forwarded-Encrypted: i=1; AJvYcCUPK2AGNcY1FJm9b/8R9oF/ky8XymIh21b8rrgrEKvcNQ6Yv5IS7KxJXrkfvpcYBnPfQWGKEp4Ndv+MfOGZ@lists.postgresql.org X-Gm-Message-State: AOJu0YyYbCOmD4tBOZZA62gKeCBe0tJGS3jEyp2CLm28e6zPsjvvl4kc g1RKvnZ37UituMLfTfxt7JYavNLZfRNxGWsb0MjtPLh9MXv5uMPigl1mM/EwnmZYCTuFUe37hoy 65j79jFn45K3Pu3IPM3gNMIAEYnA= X-Google-Smtp-Source: AGHT+IFFa8yTMKrjbyTGnGSFjqeOknNiVhHuCW5s7oG2SegTzvaSqj1RaSjcuL4aWhlpnvOq74rJ8ZSJQwW/xP+KM3M= X-Received: by 2002:a05:6122:7d1:b0:4ef:53ad:97bd with SMTP id 71dfb90a1353d-4fd1a5106fdmr1286393e0c.3.1724390634212; Thu, 22 Aug 2024 22:23:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kashif Zeeshan Date: Fri, 23 Aug 2024 10:23:43 +0500 Message-ID: Subject: Re: where is postres installed? To: Muhammad Ikram Cc: Muhammad Usman Khan , Arbol One , pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000034d543062052fb66" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000034d543062052fb66 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Arbol Use this command and it will show all the files installed by the package. dpkg-query -L postgresql-16 Regards Kashif Zeeshan On Fri, Aug 23, 2024 at 9:50=E2=80=AFAM Muhammad Ikram = wrote: > Hi Arbol, > > Hope above response from Usman must have resolved your issue. You may als= o > 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 charita= ble >>> organizations. ArbolOne on Java Development is in progress [ =C3=AD ] >>> >> > > -- > Muhammad Ikram > > --00000000000034d543062052fb66 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Arbol

Use this command and it will s= how all the files installed by the package.

dpkg-q= uery -L postgresql-16


Regards

Kashif Zeeshan


On Fri, Aug 23, 2024 at 9:50=E2=80=AFAM Muhammad Ikram <mmikram@gmail.com> wrote:
Hi Arbol,

Hope above response from Usman must have reso= lved your issue. You may also try by finding any=C2=A0 binary of PostgreSQL= . e.g.=C2=A0

=C2=A0find /usr -name pg_ctl
/usr/= local/pgsql/bin/pg_ctl
/usr/lib/postgresql/16/bin/pg_ctl
<= br>
Regards,
Ikram


=
On Fri, Au= g 23, 2024 at 9:33=E2=80=AFAM Muhammad Usman Khan <usman.k@bitnine.net> wrote:
<= /div>
Hi = Arbol,

You can try from the following commands:

d= pkg-query -L postgresql-16
which psql
sudo find= / -name "postgres" 2>/dev/null

On Fri, 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

--00000000000034d543062052fb66--