こんにちは、鯨井貴博@opensourcetechです。
今回は、PostgreSQL9.4をCentOS6.6(x86_64)にインストールしてみようと思います。
なお、Postgresqlに関しては、以下のURLから様々な情報が得られます。
日本語の情報が欲しいという方は、
NPO法人 日本PostgreSQLユーザ会のサイトもよさそうです。
コマンドラインから、yum install postgresql*とすると、
通常のレポジトリにあるバージョン8.4がインストールされます。
その為、9.4を使用するにはまずレポジトリを追加します。
yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm
すると、/etc/yum.repos.dにpgdg-94-redhat.repoが追加され、
yum.posgresql.orgからバージョン9.4が取得できます。
yum install postgresql94-server postgresql94-contrib
また、GUI環境からPostgreSQLを操作する「pgadmin3」も、
yum install pgadmin3_94 でインストール可能です。
その後、service postgresql-9.4 initdbでデータベース初期化、
chkconfig postgresql-9.4 onで自動起動が可能です。
参照サイト:http://www.postgresql.org/download/linux/redhat/#yum