title: yum install mongodb on aws linux fails: no package available
body: <p><strong>Purpose</strong></p>
  
  <p>I'm trying to install mongodb on EC2 AWS x86_64 GNU/Linux via Yum. </p>
  
  <p><strong>Prerequisites</strong></p>
  
  <p>I created a <code>/etc/yum.repos.d/mongodb.repo</code> file and tried all the available combinations for it's content found on the <a href="https://docs.mongodb.com/manual/tutorial/install-mongodb-on-amazon/" rel="nofollow noreferrer">official documentations</a> and on the related questions on stackoverflow <a href="https://stackoverflow.com/questions/34725574/yum-install-mongodb-3-2-fails">link1</a> <a href="https://stackoverflow.com/questions/15783870/get-error-when-i-install-mongodb-on-redhat">link2</a> <a href="https://stackoverflow.com/questions/40024958/no-package-available-for-mongodb-3-4-community-edition-red-hat-yum-installatio">link3</a>, for example: </p>
  
  <pre><code>[mongodb-org-3.4]
  name=MongoDB Repository
  baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.4/x86_64/
  gpgcheck=1
  enabled=1
  gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
  </code></pre>
  
  <p>(...tried with enabled=0, gpgcheck=0 too)</p>
  
  <p>I also added a <code>/etc/yum.conf</code> file like this:</p>
  
  <pre><code>[main]
  cachedir=/var/cache/yum/$basearch/$releasever
  keepcache=0
  debuglevel=2
  logfile=/var/log/yum.log
  exactarch=1
  obsoletes=1
  gpgcheck=1
  plugins=1
  installonly_limit=3
  </code></pre>
  
  <p><strong>Problem</strong></p>
  
  <p>I'm getting the same output when running 
  <code>sudo yum install mongodb-org</code> (or by specifying the packages <code>sudo yum install mongo-org mongo-org-server</code> or by specifying the versions too <code>sudo yum install -y mongodb-org-3.2.13 mongodb-org-server-3.2.13 mongodb-org-shell-3.2.13 mongodb-org-mongos-3.2.13 mongodb-org-tools-3.2.13</code>)</p>
  
  <p><code>Loaded plugins: priorities, update-motd, upgrade-helper
  amzn-main                                                | 2.1 kB     00:00
  amzn-updates                                             | 2.3 kB     00:00
  No package mongodb-org available.
  Error: Nothing to do</code></p>
  
  <p><strong>Question</strong></p>
  
  <p>What am I missing? Is there any additional dependencies? </p>