title: Mongo shell not found or not installed
body: <p>Mongo shell not found or not installed </p>
  
  <p>I installed mongodb using </p>
  
  <pre><code>sudo yum install -y mongodb-org
  </code></pre>
  
  <p>The installation was successful, I did the RHEL port config required, and I started the mongod service. </p>
  
  <pre><code>[root@host mongodb]# service mongod status
  mongod (pid 1761) is running...
  </code></pre>
  
  <p>However, when I look for the mongo shell, I cannot find it using the 'locate' command:</p>
  
  <pre><code>locate mongo
  /etc/yum.repos.d/mongodb-org-3.0.repo
  /usr/share/vim/vim72/keymap/mongolian_utf-8.vim
  /var/mongodb
  </code></pre>
  
  <p>According to the mongo docs, this is how you start the shell:
  To start the mongo shell and connect to your MongoDB instance running on localhost with default port:</p>
  
  <ol>
  <li>Go to your : cd </li>
  <li>Type ./bin/mongo to start mongo: ./bin/mongo</li>
  </ol>
  
  <p><strong>Questions</strong>:</p>
  
  <ol>
  <li>What is the {mongodb installation dir}? /var/mongodb does not have any contents</li>
  <li>Is there something wrong with the installation of the mongo shell? Install contents below. </li>
  </ol>
  
  <p>sudo yum install -y mongodb-org</p>
  
  <pre><code>            Loaded plugins: fastestmirror, refresh-packagekit, security
              Determining fastest mirrors
               * base: centos.bhs.mirrors.ovh.net
               * extras: centos.bhs.mirrors.ovh.net
               * updates: centos.bhs.mirrors.ovh.net
              base                                                                                                           | 3.7 kB     00:00
              base/primary_db                                                                                                | 4.6 MB     00:02
              extras                                                                                                         | 3.4 kB     00:00
              extras/primary_db                                                                                              |  27 kB     00:00
              mongodb-org-3.0                                                                                                |  951 B     00:00
              mongodb-org-3.0/primary                                                                                        | 8.6 kB     00:00
              mongodb-org-3.0                                                                                                                 45/45
              updates                                                                                                        | 3.4 kB     00:00
              updates/primary_db                                                                                             | 1.3 MB     00:00
              Setting up Install Process
              Resolving Dependencies
              --&gt; Running transaction check
              ---&gt; Package mongodb-org.x86_64 0:3.0.6-1.el6 will be installed
              --&gt; Processing Dependency: mongodb-org-shell = 3.0.6 for package: mongodb-org-3.0.6-1.el6.x86_64
              --&gt; Processing Dependency: mongodb-org-tools = 3.0.6 for package: mongodb-org-3.0.6-1.el6.x86_64
              --&gt; Processing Dependency: mongodb-org-server = 3.0.6 for package: mongodb-org-3.0.6-1.el6.x86_64
              --&gt; Processing Dependency: mongodb-org-mongos = 3.0.6 for package: mongodb-org-3.0.6-1.el6.x86_64
              --&gt; Running transaction check
              ---&gt; Package mongodb-org-mongos.x86_64 0:3.0.6-1.el6 will be installed
              ---&gt; Package mongodb-org-server.x86_64 0:3.0.6-1.el6 will be installed
              ---&gt; Package mongodb-org-shell.x86_64 0:3.0.6-1.el6 will be installed
              ---&gt; Package mongodb-org-tools.x86_64 0:3.0.6-1.el6 will be installed
              --&gt; Finished Dependency Resolution
  
              Dependencies Resolved
  
              ======================================================================================================================================
               Package                              Arch                     Version                        Repository                         Size
              ======================================================================================================================================
              Installing:
               mongodb-org                          x86_64                   3.0.6-1.el6                    mongodb-org-3.0                   4.6 k
              Installing for dependencies:
               mongodb-org-mongos                   x86_64                   3.0.6-1.el6                    mongodb-org-3.0                   3.9 M
               mongodb-org-server                   x86_64                   3.0.6-1.el6                    mongodb-org-3.0                   8.3 M
               mongodb-org-shell                    x86_64                   3.0.6-1.el6                    mongodb-org-3.0                   4.1 M
               mongodb-org-tools                    x86_64                   3.0.6-1.el6                    mongodb-org-3.0                    31 M
  
              Transaction Summary
              ======================================================================================================================================
              Install       5 Package(s)
  
              Total download size: 48 M
              Installed size: 149 M
              Downloading Packages:
              (1/5): mongodb-org-3.0.6-1.el6.x86_64.rpm                                                                      | 4.6 kB     00:00
              (2/5): mongodb-org-mongos-3.0.6-1.el6.x86_64.rpm                                                               | 3.9 MB     00:03
              (3/5): mongodb-org-server-3.0.6-1.el6.x86_64.rpm                                                               | 8.3 MB     00:04
              (4/5): mongodb-org-shell-3.0.6-1.el6.x86_64.rpm                                                                | 4.1 MB     00:04
              (5/5): mongodb-org-tools-3.0.6-1.el6.x86_64.rpm                                                                |  31 MB     00:05
              --------------------------------------------------------------------------------------------------------------------------------------
              Total                                                                                                 2.4 MB/s |  48 MB     00:20
              Running rpm_check_debug
              Running Transaction Test
              Transaction Test Succeeded
              Running Transaction
                Installing : mongodb-org-server-3.0.6-1.el6.x86_64                                                                              1/5
                Installing : mongodb-org-shell-3.0.6-1.el6.x86_64                                                                               2/5
                Installing : mongodb-org-mongos-3.0.6-1.el6.x86_64                                                                              3/5
                Installing : mongodb-org-tools-3.0.6-1.el6.x86_64                                                                               4/5
                Installing : mongodb-org-3.0.6-1.el6.x86_64                                                                                     5/5
                Verifying  : mongodb-org-tools-3.0.6-1.el6.x86_64                                                                               1/5
                Verifying  : mongodb-org-mongos-3.0.6-1.el6.x86_64                                                                              2/5
                Verifying  : mongodb-org-shell-3.0.6-1.el6.x86_64                                                                               3/5
                Verifying  : mongodb-org-3.0.6-1.el6.x86_64                                                                                     4/5
                Verifying  : mongodb-org-server-3.0.6-1.el6.x86_64                                                                              5/5
  
              Installed:
                mongodb-org.x86_64 0:3.0.6-1.el6
  
              Dependency Installed:
                mongodb-org-mongos.x86_64 0:3.0.6-1.el6     mongodb-org-server.x86_64 0:3.0.6-1.el6     mongodb-org-shell.x86_64 0:3.0.6-1.el6
                mongodb-org-tools.x86_64 0:3.0.6-1.el6
  
  
              Complete!
  </code></pre>