ghosTzone
main(_){return _} && echo $? /* Keep It Simple Stupid | 本博客所有文章皆为原创 转载请注明 - ghosTM55 */

安装PostgreSQL的专用RPM镜像

ghosTM55 posted @ 2008年11月28日 18:42 in Linux , 5409 阅读

  笔者近期由于公司项目需要安装了两台虚拟机(CentOS 4.4)来进行PostgreSQL的数据库同步实验(slony-1),CentOS 4.4源内的PostgreSQL版本还停留在7,而笔者需要最新的版本8.3。于是找到了一个非常好的PostgreSQL RPM镜像。

  在这里你可以找到适合centos/fedora/redhat的镜像安装文件,只要简单的下载指定的镜像RPM,安装完成后,在/etc/yum.repos.d/目录下可以看到新增加的pgdg.*.repo文件。

  这时,用户还需要在Distro-Base.repo(笔者是CentOS-Base)文件中插入一行:

exclude=postgresql*

  现在,用户可以通过yum update来查看该镜像是否生效:

[root@ghosTunix yum.repos.d]# yum update
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * pgdg83: yum.pgsqlrpms.org
 * base: 192.168.5.4
 * updates: 192.168.5.4

  大功告成。

ghosTM55:~> date
Fri Nov 28 10:43:46 CST 2008

Avatar_small
best essay 说:
2018年11月30日 17:08

I trust a similar best work from you later on also. Truth is told your creative writing capacities have motivated me to begin my own blog now. Truly the blogging is spreading its wings quickly. Your write up is a fine example of it. It was crystal clear, continue sharing. For more info you can use this best essay service to having a wonderful assistant in writing and even you can get the guidelines too.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter