CentOS 6.3 預設倉庫僅提供 PostgreSQL 8.4,應用需求 9.0+。使用 PostgreSQL 官方 YUM 倉庫可無縫升級。
wget https://yum.postgresql.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpmrpm -ivh pgdg-centos92-9.2-6.noarch.rpm/etc/yum.repos.d/CentOS-Base.repo,在 [base]、[updates] 區段加入:exclude=postgresql*yum install postgresql92-server postgresql92-contribservice postgresql-9.2 initdbchkconfig postgresql-9.2 on && service postgresql-9.2 startpsql --version → psql (PostgreSQL) 9.2.x/var/lib/pgsql/9.2/data//var/lib/pgsql/9.2/data/postgresql.conf, pg_hba.confpostgresql-9.2/usr/pgsql-9.2/bin/ (需加入 PATH)同樣適用於 CentOS 5/6/7、RHEL、Fedora,僅需下載對應 pgdg- RPM 套件 (見 官方列表)。