How to install Robomongo from tar.gz file as a program in Ubuntu 15.10 How to install Robomongo from tar.gz file as a program in Ubuntu 15.10 mongodb mongodb

How to install Robomongo from tar.gz file as a program in Ubuntu 15.10


Robomongo is now Robo 3T. Following are the updated steps:

  1. Download the tar file from robomongo site. The current file is robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz, but yours could be different.

  2. Open up the terminal, switch to download directory and run the following commands:

    $ tar -xvzf robo3t-1.1.1-linux-x86_64-c93c6b0.tar.gz$ sudo mkdir /usr/local/bin/robomongo$ sudo mv  robo3t-1.1.1-linux-x86_64-c93c6b0/* /usr/local/bin/robomongo$ cd /usr/local/bin/robomongo/bin$ sudo chmod +x robo3t $ sudo gedit ~/.bashrc
  3. Add the following line to the end of .bashrc file:

    alias robomongo='/usr/local/bin/robomongo/bin/robo3t'

  4. Save and close the file. Now reload it using the following command:

    $ source ~/.bashrc
  5. Then you can run robomongo from your terminal and it will work:

    $ robomongo


You can also put the robomongo into /usr/bin like I do:

tar xf robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gzsudo mv robomongo-0.9.0-rc8-linux-x86_64-c113244/ /usr/bin/robomongoexport PATH=/usr/bin/robomongo/bin:$PATH

If you are using fish shell, you need to change the last line to:

set PATH $PATH /usr/bin/robomongo/bin

Now you can start it with command:

robomongo


Pulled this from my dotfiles. It's ugly but it works... and it's a bit more verbose so it should be understandable to most:

# Pull down and install Robomongo by copying filescd /tmpwget https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gztar xf robomongo-0.9.0-linux-x86_64-0786489.tar.gzsudo mv ./robomongo-0.9.0-linux-x86_64-0786489 /opt/robomongocd /usr/sbinsudo ln -s /opt/robomongo/bin/robomongo# Grab image to use for iconcd /opt/robomongowget http://mongodb-tools.com/img/robomongo.png# Create desktop entrytouch /tmp/robomongo.txtecho "[Desktop Entry]" >> /tmp/robomongo.txtecho "Encoding=UTF-8" >> /tmp/robomongo.txtecho "Name=Robomongo" >> /tmp/robomongo.txtecho "Comment=Launch Robomongo" >> /tmp/robomongo.txtecho "Icon=/opt/robomongo/robomongo.png" >> /tmp/robomongo.txtecho "Exec=/usr/sbin/robomono" >> /tmp/robomongo.txtecho "Terminal=false" >> /tmp/robomongo.txtecho "Type=Application" >> /tmp/robomongo.txtecho "Categories=Developer;" >> /tmp/robomongo.txtecho "StartupNotify=true" >> /tmp/robomongo.txtmv /tmp/robomongo.txt ~/.local/share/applications/robomongo.desktop