title: Installing PostgreSQL Client v10 on AWS Amazon Linux (EC2) AMI
body: <p>I have successfully launched new AWS RDS PostgreSQL <em>v10</em> instance and need to install PostgreSQL v10 client on Amazon Linux EC2 instance.</p>
  
  <p>I have tried to install it with <code>yum</code>, but it cant find the package for v10:</p>
  
  <pre><code>[ec2-user@ip-X-X-X-X ~]$ sudo yum install -y postgresql10
  Loaded plugins: priorities, update-motd, upgrade-helper
  amzn-main      | 2.1 kB  00:00:00
  amzn-updates  | 2.5 kB  00:00:00
  No package postgresql110 available.
  Error: Nothing to do
  </code></pre>
  
  <p>Previously I managed to install PostgreSQL client v9.5 with:</p>
  
  <pre><code>[ec2-user@ip-X-X-X-X ~]$ sudo yum install -y postgresql95
  </code></pre>
  
  <p>I guess I need to add Postgres yum repository, as mentioned in <a href="https://www.postgresql.org/download/linux/redhat/" rel="noreferrer">https://www.postgresql.org/download/linux/redhat/</a>. But what Platform should I choose for Amazon Linux? Red Hat?</p>