Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon linux: No package pgbouncer available

trying to install pgbouncer on amazon met this:

[root@somehost ~]# uname -a
Linux somehost 4.4.35-33.55.amzn1.x86_64 #1 SMP Tue Dec 6 20:30:04 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@somehost ~]# yum install pgbouncer
Loaded plugins: priorities, update-motd, upgrade-helper
No package pgbouncer available.
Error: Nothing to do

Went to github - found only compilable version. Googled and decided to post solution below

like image 559
Vao Tsun Avatar asked Feb 09 '17 09:02

Vao Tsun


1 Answers

at The PostgreSQL Global Development Group repo copy link to your linux release (in my case Amazon Linux AMI 2015.03 - x86_64) and run:

rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/pgdg-ami201503-93-9.3-3.noarch.rpm
yum install pgbouncer

as result:

Installed:
  pgbouncer.x86_64 0:1.7.2-6.rhel6
like image 158
Vao Tsun Avatar answered Sep 25 '22 02:09

Vao Tsun