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
    

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 files
cd /tmp
wget https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz
tar xf robomongo-0.9.0-linux-x86_64-0786489.tar.gz
sudo mv ./robomongo-0.9.0-linux-x86_64-0786489 /opt/robomongo
cd /usr/sbin
sudo ln -s /opt/robomongo/bin/robomongo

# Grab image to use for icon
cd /opt/robomongo
wget http://mongodb-tools.com/img/robomongo.png

# Create desktop entry
touch /tmp/robomongo.txt
echo "[Desktop Entry]" >> /tmp/robomongo.txt
echo "Encoding=UTF-8" >> /tmp/robomongo.txt
echo "Name=Robomongo" >> /tmp/robomongo.txt
echo "Comment=Launch Robomongo" >> /tmp/robomongo.txt
echo "Icon=/opt/robomongo/robomongo.png" >> /tmp/robomongo.txt
echo "Exec=/usr/sbin/robomono" >> /tmp/robomongo.txt
echo "Terminal=false" >> /tmp/robomongo.txt
echo "Type=Application" >> /tmp/robomongo.txt
echo "Categories=Developer;" >> /tmp/robomongo.txt
echo "StartupNotify=true" >> /tmp/robomongo.txt
mv /tmp/robomongo.txt ~/.local/share/applications/robomongo.desktop

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

tar xf robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz

sudo mv robomongo-0.9.0-rc8-linux-x86_64-c113244/ /usr/bin/robomongo

export 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