snippetsqlMinor
How do I uninstall the old version of Postgres on CentOS 7?
Viewed 0 times
centosthepostgresversionuninstallhowold
Problem
I just installed Postgres 9.6 on CentOS 7. However when I run
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?
[root@server tmp]# /usr/bin/psql --version
psql (PostgreSQL) 9.2.23It 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?
Solution
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.Context
StackExchange Database Administrators Q#206189, answer score: 2
Revisions (0)
No revisions yet.