How do I uninstall the old version of Postgres on CentOS 7? I just installed Postgres 9.6 on CentOS 7.  However when I run

[root@server tmp]# /usr/bin/psql --version
psql (PostgreSQL) 9.2.23


It still seems to be pointing to my old version.  How do I uninstall the old version (or figure out what its called) without harming the new version?
The newer version of Postgres will be in /usr/pgsql-9.6 (or a similar location) so you can simply use the alternatives command to make this one the default.