2018-12-14 03:15:13 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
|
|
|
yum install -y epel-release
|
|
|
|
yum update
|
|
|
|
|
|
|
|
# "Development Tools" is the equivalent of build-essential
|
|
|
|
yum groupinstall -y "Development Tools"
|
|
|
|
|
|
|
|
RHVER="$(rpm -qf --queryformat="%{VERSION}" /etc/redhat-release)"
|
|
|
|
RHARCH="$(rpm -qf --queryformat="%{ARCH}" /etc/redhat-release)"
|
2018-12-16 20:29:45 +01:00
|
|
|
PGVER=10
|
|
|
|
# PostgreSQL $PGVER
|
|
|
|
yum localinstall -y "https://yum.postgresql.org/$PGVER/redhat/rhel-$RHVER-$RHARCH/pgdg-centos$PGVER-$PGVER-2.noarch.rpm"
|
2018-12-14 03:15:13 +01:00
|
|
|
|
|
|
|
# PGroonga
|
|
|
|
# https://pgroonga.github.io/install/centos.html
|
|
|
|
yum localinstall -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
|