title: Install MongoDB on CentOs 7 without YUM. have rpm files but not tgz
body: <p>I'm fairly new to Linux and am running CentOS 7. I can do the basics of navigating, creating dirctories, permissions, unzip applications and make SL to the apps but I have no idea what to do with an "rpm" file.</p>
  
  <p>The system that I am trying to install MongoDB 4.2.x on does not have an outside connection. I have the individual rpm files for MongoDB but not the tgz which some article I read said I should use.
  There is no way for me to get the tgz over to the machine unless I wait several days.</p>
  
  <p>With only the .rpm files, how do I install MongoDB?</p>
  
  <p>[<a href="https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/][1]" rel="nofollow noreferrer">https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/][1]</a></p>
  
  <p>The instructions in the above link say to create the .repo file but that makes a reference to the external URL which the system does not have access to.</p>
  
  <pre><code>[mongodb-org-4.2]
  name=MongoDB Repository
  baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
  </code></pre>
  
  <p>*</p>
  
  <ul>
  <li>Again, with only the .rpm files, how do I install MongoDB?</li>
  </ul>
  
  <p>*</p>