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 1shLz9-00GjQI-5b for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2024 04:33:15 +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 1shLz5-009DYU-Im for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2024 04:33:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1shLz5-009DYL-30 for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2024 04:33:11 +0000 Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1shLz0-0013eE-KY for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2024 04:33:10 +0000 Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-6c0ac97232bso13795527b3.1 for ; Thu, 22 Aug 2024 21:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitnine-net.20230601.gappssmtp.com; s=20230601; t=1724387586; x=1724992386; 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=Bfp//PO5Z8KeL3G5WnoWYFtobsSDs4Au8dELs5R5qts=; b=S3Pu3h67V1kagWwbGG3tdEKxje4FVGj1s78/Lb9Pm7OUBNc5yP5OWKPwH2XKKuyzXU +1xK+MdpvoUzQESqhEeiuqXBr404gZPQE9JxPhprlgM4LeZruSMnLgOSHV1YdEY0oOHQ ti+PEiQFTdVZp5un/0i5KQexwfxGjew0gVAMGojMyUrz9OR8exW9ad1X6Yzj9fLjq8NB bFij385wSBfpr7+U0+Y/RQpi0sFxgAeoVm7eq+9m2Nuh1UJ27Ywu0MXHrvHtzUU+h6hb sbFIoxeVdPyRxC5ar4S9oIM/ZxWpIQGKc9RNmhVM6KccDN09IWfeUsKIv0kHUrI+CCWY S1XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724387586; x=1724992386; 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=Bfp//PO5Z8KeL3G5WnoWYFtobsSDs4Au8dELs5R5qts=; b=S2trWCJYg3HgO7vFS+Kp54mECNG0gvwaxFcBY40OfPUu5Yr/eG+kQ6qodKI7T9uynx nBhiIF6gKmjUnK95q9fFYl4PPccDVuiSPZf8jjSJN6Pe7HCr1+DVhyxUyEQk58gic2lr aO9+M2RkujOxcmZmlNRMv9Iw2olO0AVNsBclgzz8l3BI9YthwvW+VZtPouebrIRPQ6u6 Jaz9FD34pyIrMXy99Pnvr9Ch8PTJD7HAsvsK23HpsYe5qFpKHh4wTjnhbOsbWmieueFp OjV3SUGtrf80JN80tiYN0Ul4i+hlTZgado6A+d5Vh8fjGCy+OXfs8y0fRzo/QyP27vfT edXw== X-Gm-Message-State: AOJu0Ywhl5XxPL9ozVG2SzafWFIQWp7FbFz0EKcZSdD4hRwKcBsVk8/I QbWJnhfFl99Up23wXpINZkx6b36ON+VnFlncULSQkhFKmls7bNSSI45wnw/BReWdnqy98bKxxtu qts14+XTJ9NXPPjO0FsW6CnK0bkF/qmapPz26Ng== X-Google-Smtp-Source: AGHT+IEueiH7iuDgN/Ia1bi6LTB9i1QbEkdUeVbyS0xmuwe50Kqx/vy5vrQtZgbSnYrHW3p4mjySUUagMl2nLrtjp1I= X-Received: by 2002:a05:690c:89:b0:630:de2f:79b8 with SMTP id 00721157ae682-6c624dc9720mr14068537b3.13.1724387585830; Thu, 22 Aug 2024 21:33:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Muhammad Usman Khan Date: Fri, 23 Aug 2024 09:32:54 +0500 Message-ID: Subject: Re: where is postres installed? To: Arbol One Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000008248c80620524556" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008248c80620524556 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 charitabl= e > organizations. ArbolOne on Java Development is in progress [ =C3=AD ] > --0000000000008248c80620524556 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Arbol,

You can try from the following commands:<= div>
dpkg-query -L postgresql-16
which psql
=
sudo find / -name "postgres" 2>/dev/null
<= /div>
O= n 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 ]
--0000000000008248c80620524556--