我如何使用 rpm 从 http://yum.postgresql.org 安装 postgres?
我遵循了以下步骤:
从 Live DVD 安装 Centos 6.5:
http://vault.centos.org/6.5/isos/x86_64
我谷歌: Postgres 9.5 安装在 Centos 6.5 上
我运行两个外壳命令:
wget https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6-x86_64/pgdg-centos95-9.5-2.noarch.rpm
yum install pgdg-centos95-9.5-2.noarch.rpm
我不知道下一步该怎么做。
我看到这个页面:
http://yum.postgresql.org/repopackages.php
页面顶部有一个链接:"Yum Howto"
我单击该链接并看到此页面:
http://yum.postgresql.org/howtoyum.php
第一个链接是这样的:
http://yum.postgresql.org/repopackages.php
所以我看到的是循环文档而不是有用的文档。
我看到一个指向 pdf 的链接:
http://yum.postgresql.org/files/PostgreSQL-RPM-Installation-PGDG.pdf
我打开pdf,它列出了可用的软件包。
我推测我需要这些软件包:
PostgreSQL-libs、PostgreSQL 和 PostgreSQL-server
它没有说他们在哪里。
问题:
PostgreSQL-RPM-Installation-PGDG中列出的软件包在哪里.pdf?
假设我想安装:postgresql-libs,postgresql和postgresql-server,如何?
在 postgresql.org,我看到这个rpm:pgdg-centos95-9.5-2.noarch.rpm
pgdg-centos95-9.5-2.noarch.rpm的目的是什么?
我想通了。
pgdg-centos95-9.5-2.noarch.rpm 的目的是向主机上的 yum-package-list 公开更多软件包。
然后,我可以使用以下命令看到其中的一些:
yum list postgresql95*
我可以使用以下命令安装它们:
yum install postgresql95 postgresql95-server postgresql95-libs postgresql95-devel
我在我的 centos 主机上运行了上述命令,它们运行良好。