LoginSignup
1
1

More than 5 years have passed since last update.

CentOS7.xにPostgreSQL10.xをインストールするたった一つの方法

Last updated at Posted at 2018-05-29

via http://vdeep.net/centos7-postgres

コマンド

既存のPostgreSQLを削除する

sudo yum -y remove postgresql

RPMでPostgreSQL10のリポジトリを登録

 sudo rpm -iUvh https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm

リポジトリの設定ファイルの編集

 sudo nano /etc/yum.repos.d/pgdg*.repo

[pgdg10]
...省略...
enabled=1

enabled=0

PostgreSQL10のサーバーをインストール&自動起動の設定

sudo yum -y install --enablerepo=pgdg10 postgresql10-server postgresql10-devel postgresql10-contrib
sudo systemctl enable postgresql-10

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1