Hello,
Thank you for the quick reply. I share the output below:
root@myserver ~ # sudo su - postgres
postgres@myserver ~ $ which psql
/usr/bin/psql
postgres@myserver ~ $ ls -l "$( which psql )" "$( readlink -f "$( which
psql )" )"
lrwxrwxrwx 1 root root 28 Feb 15 11:25 /usr/bin/psql ->
/etc/alternatives/pgsql-psql
-rwxr-xr-x 1 root root 632176 Feb 9 15:21 /usr/pgsql-12/bin/psql
postgres@myserver ~ $ rpm -qf "$( which psql )"
file /usr/bin/psql is not owned by any package
postgres@myserver ~ $ rpm -qf "$( readlink -f "$( which psql )" )"
postgresql12-12.10-1PGDG.rhel6.x86_64
postgres@myserver ~ $
Best regards,
Julian