How do I uninstall the old version of Postgres on CentOS 7?
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.