如何更新存储库 YUM, 获得一个版本 Postgres9.x?

我需要安装多个库 Postgres9.1, 但“列表 yum» 仅显示版本 8.4.

如何“更新”repo列表 yum, 获得一个版本 9.1?

我的版本 Linux:

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.9 (Tikanga)
已邀请:

窦买办

赞同来自:

PGDG 酒吧包裹 RHEL 5; 看
http://yum.postgresql.org/
有关说明。

包名称 PostgreSQL 在存储库中 PGDG 其他。 这干扰了

postgresql

使用简单更新的软件包

yum update

. 这是故意完成的,因为它会给您带来一个意想不到的主要版本,这将导致至少相当长的空闲时间和可能是兼容性问题。

读书
http://www.postgresql.org/docs ... .html
对于每个主要版本 PostgreSQL 在你的之间 8.4 和当前 9.3, 那些。 阅读备注 9.0, 9.1, 9.2 和 9.3 (特别是关于兼容性的部分).

然后安装 9.3:

yum install postgresql93-server postgresql93-contrib

它不会

刷新

您当前的服务器。 他会增加一个新的。 然后您可以使用数据

pg_upgrade

或者使转储并重新启动,更改端口 9.3 在港口工作 5432, 当你完成,停止和删除 8.4.

有关更多信息,请参阅

README.rpm-dist



/usr/share/doc/postgresql93/README.rpm-dist

安装后

postgresql93

包裹。

八刀丁二

赞同来自:

您可以使用存储库 yum, 由项目提供 PostgreSQL:

rpm -hiv [url=http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat91-9.1-5.noarch.rpm]http://yum.postgresql.org/9.1/ ... h.rpm[/url]

或者

rpm -hiv [url=http://yum.postgresql.org/9.1/redhat/rhel-5-i386/pgdg-redhat91-9.1-5.noarch.rpm]http://yum.postgresql.org/9.1/ ... h.rpm[/url]

这将为您添加他们的存储库。 看
http://people.planetpostgresql ... .html
获取更多信息。

要回复问题请先登录注册