centos安装
使用yum安装对应版本的postgresql即可,以安装postgresql10为例。
-
先查看当前yum源中的postgresql包源
yum list | grep postgresql
嗯,没有10版本的包源。 -
添加对应包源
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm -y
然后再次查询,发现已经更新到了最新的postgrersql版本
-
安装psql10客户端
yum install postgresql10 -y<