インターネット接続可能な Amazon Linux 2 で Pgpool-II と依存パッケージをダウンロード
- /etc/yum.conf で keepcache=1 に設定
$ sudo vi /etc/yum.conf
keepcache=1
- Pgpool-II をインストール & ダウンロード
$ sudo yum install -y https://www.pgpool.net/yum/rpms/4.1/redhat/rhel-7-x86_64/pgpool-II-release-4.1-2.noarch.rpm
$ cd /etc/yum.repos.d
$ sudo perl -i.org -pe 's/\$releasever/7/g' pgpool-II-release-41.repo
$ sudo yum -y install pgpool-II-pg11
(中略)
Installed:
pgpool-II-pg11.x86_64 0:4.1.3-1pgdg.rhel7
Dependency Installed:
libmemcached.x86_64 0:1.0.16-5.amzn2.0.2 postgresql-libs.x86_64 0:9.2.24-1.amzn2.0.1
Complete!
$ ls /var/cache/yum/x86_64/2/amzn2-core/packages/
libmemcached-1.0.16-5.amzn2.0.2.x86_64.rpm postgresql-libs-9.2.24-1.amzn2.0.1.x86_64.rpm
$ ls /var/cache/yum/x86_64/2/pgpool41/packages/
pgpool-II-pg11-4.1.3-1pgdg.rhel7.x86_64.rpm
$ scp -ri ~/.ssh/mykey.pem /var/cache/yum/x86_64/2/amzn2-core/packages/* ec2-user@ec2-**-***-**-**.ap-northeast-1.compute.amazonaws.com:~/
$ scp -ri ~/.ssh/mykey.pem /var/cache/yum/x86_64/2/pgpool41/packages/* ec2-user@ec2-**-***-**-**.ap-northeast-1.compute.amazonaws.com:~/
インターネット接続のない Amazon Linux 2 on EC2 に Pgpool-II をインストール
$ sudo rpm -ivh libmemcached-1.0.16-5.amzn2.0.2.x86_64.rpm pgpool-II-pg11-4.1.3-1pgdg.rhel7.x86_64.rpm postgresql-libs-9.2.24-1.amzn2.0.1.x86_64.rpm
環境
$ cat /etc/system-release
Amazon Linux release 2 (Karoo)
$ uname -r
4.14.193-149.317.amzn2.x86_64