public inbox for [email protected]  
help / color / mirror / Atom feed
From: Kashif Zeeshan <[email protected]>
To: Muhammad Ikram <[email protected]>
Cc: Muhammad Usman Khan <[email protected]>
Cc: Arbol One <[email protected]>
Cc: [email protected]
Subject: Re: where is postres installed?
Date: Fri, 23 Aug 2024 10:23:43 +0500
Message-ID: <CAAPsdheDOJkQ1pfDMd6T2F9Z5yDTjtRzA2rafcQSnu+azB5o8Q@mail.gmail.com> (raw)
In-Reply-To: <CAGeimVoXn57eR=FWsbe2t1RFgUa08LffnJgLj9fZ48NsTUFcvQ@mail.gmail.com>
References: <DM8PR02MB79420D0F5AB14952B94DBCECBA882@DM8PR02MB7942.namprd02.prod.outlook.com>
	<CAPnRvGumS=9=ndcotBNns9aeF=VSkXCXsraBgmjiXEm6fMtdJA@mail.gmail.com>
	<CAGeimVoXn57eR=FWsbe2t1RFgUa08LffnJgLj9fZ48NsTUFcvQ@mail.gmail.com>

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 AM Muhammad Ikram <[email protected]> wrote:

> 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 AM Muhammad Usman Khan <[email protected]>
> 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 <[email protected]> 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 charitable
>>> organizations. ArbolOne on Java Development is in progress [ í ]
>>>
>>
>
> --
> Muhammad Ikram
>
>


view thread (5+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: where is postres installed?
  In-Reply-To: <CAAPsdheDOJkQ1pfDMd6T2F9Z5yDTjtRzA2rafcQSnu+azB5o8Q@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox