PostgreSQL Yum Repository

来源:互联网 发布:数据库完整性分类 编辑:程序博客网 时间:2024/06/06 02:32

PostgreSQL Yum Repository

If the version supplied by your operating system is not the one you want, you can use the PostgreSQL Yum Repository. This repository will integrate with your normal systems and patch management, and provide automatic updates for all supported versions of PostgreSQL throughout the support lifetime of PostgreSQL.

The PostgreSQL yum repository currently supports Red Hat Enterprise Linux, CentOS and ScientificLinux versions 5.x and 6.x, as well as current versions of Fedora. Note that due to the short support cycle on Fedora, all versions are not available on this platform, and we recommend not using Fedora for server deployments. All distributions are supported on both x86_64 and i386 architectures.

To use the yum repository, you must first install the repository RPM. To do this, download the correct RPM from the repository RPM listing, and install it with commands like:

yum install http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm

Once this is done, you can proceed to install and update packages the same way as the ones included in the distribution.

yum install postgresql93-server postgresql93-contrib
service postgresql-9.3 initdb
chkconfig postgresql-9.3 on
or, on Fedora 19 and other later derived distributions:
yum install postgresql93-server postgresql93-contrib
/usr/pgsql-9.3/bin/postgresql93-setup initdb
systemctl enable postgresql-9.3.service
systemctl start postgresql-9.3.service

Package names in the PostgreSQL yum repository follows the same standard as the ones included in the main repositories, but include the version number, such as:

  • postgresql93
  • postgresql93-server
  • postgresql93-contrib
  • pgadmin3_93
0 0
原创粉丝点击