public inbox for [email protected]help / color / mirror / Atom feed
where is postres installed? 5+ messages / 5 participants [nested] [flat]
* where is postres installed? @ 2024-08-23 00:35 Arbol One <[email protected]> 0 siblings, 2 replies; 5+ messages in thread From: Arbol One @ 2024-08-23 00:35 UTC (permalink / raw) To: [email protected] 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 [ í ] ^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: where is postres installed? @ 2024-08-23 04:32 Muhammad Usman Khan <[email protected]> parent: Arbol One <[email protected]> 1 sibling, 1 reply; 5+ messages in thread From: Muhammad Usman Khan @ 2024-08-23 04:32 UTC (permalink / raw) To: Arbol One <[email protected]>; +Cc: [email protected] 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 [ í ] > ^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: where is postres installed? @ 2024-08-23 04:49 Muhammad Ikram <[email protected]> parent: Muhammad Usman Khan <[email protected]> 0 siblings, 1 reply; 5+ messages in thread From: Muhammad Ikram @ 2024-08-23 04:49 UTC (permalink / raw) To: Muhammad Usman Khan <[email protected]>; +Cc: Arbol One <[email protected]>; [email protected] 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 ^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: where is postres installed? @ 2024-08-23 05:21 Ron Johnson <[email protected]> parent: Arbol One <[email protected]> 1 sibling, 0 replies; 5+ messages in thread From: Ron Johnson @ 2024-08-23 05:21 UTC (permalink / raw) To: pgsql-general On Thu, Aug 22, 2024 at 8:36 PM 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? > pg_config | grep BINDIR -- Death to America, and butter sauce. Iraq lobster! ^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: where is postres installed? @ 2024-08-23 05:23 Kashif Zeeshan <[email protected]> parent: Muhammad Ikram <[email protected]> 0 siblings, 0 replies; 5+ messages in thread From: Kashif Zeeshan @ 2024-08-23 05:23 UTC (permalink / raw) To: Muhammad Ikram <[email protected]>; +Cc: Muhammad Usman Khan <[email protected]>; Arbol One <[email protected]>; [email protected] 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 > > ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2024-08-23 05:23 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2024-08-23 00:35 where is postres installed? Arbol One <[email protected]> 2024-08-23 04:32 ` Muhammad Usman Khan <[email protected]> 2024-08-23 04:49 ` Muhammad Ikram <[email protected]> 2024-08-23 05:23 ` Kashif Zeeshan <[email protected]> 2024-08-23 05:21 ` Ron Johnson <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox