How to use command line to install a .deb file in Ubuntu?

Take the .deb file for MySQL Workbench for example, you can use the following command
sudo dpkg -i mysql-workbench-community-6.2.5-1ubu1404-amd64.deb to install it.
Once the installation is finished, click the “Search your computer and online sources” button, type “MySQL” on the search bar, you can see MySQL Workbench app already installed to your Ubuntu system.

Featured image

[Reproduce] How to Install The Latest Eclipse Release in Ubuntu 14.04

/* I feel like this journal is a great one for me to install not only Eclipse but also some other apps with their latest version on Ubuntu (regardless of Ubuntu versions), with launcher shortcuts created. Therefore, I decided to reproduce it here. Thank UbuntuHandbook */

Soruce: http://ubuntuhandbook.org/index.php/2014/06/install-latest-eclipse-ubuntu-14-04/

How to Install The Latest Eclipse Release in Ubuntu 14.04

install Eclipse Ubuntu

This quick tutorial is going to show you how to install the latest release of Eclipse, while the Ubuntu repositories has an very old version.

So far, the latest is Eclipse Kepler (4.3.2). You can follow below steps to install it on Ubuntu 14.04 or other Ubuntu releases.

Eclipse Kepler (4.3.2) in Ubuntu 14.04 Unity

1. Install Java.

If you don’t have Java installed on your system. Click the link below to bring up Ubuntu Software Center and click install OpenJDK Java 7:

Click Install OpenJDK java 7

Or, install Oracle Java from this link.

2. Download Eclipse from its website

You may check out your OS Type 32-bit or 64-bit by going to System Settings -> Details -> Overview

Download Eclipse for Linux

3. Extract Eclipse to /opt/ for global use

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the command below to extract Eclipse to /opt/:

cd /opt/ && sudo tar -zxvf ~/Downloads/eclipse-*.tar.gz

You may replace “eclipse-*.tar.gz” (without quote) to the exact package name if the command does not work.

Don’t like Linux commands? You can do this by opening Nautilus file browser via root: Press Alt+F2 -> run gksudo nautilus.

Once done, you should see the eclipse folder under /opt/ directory.

Eclipse in /opt/ for global use

4. Create a launcher shortcut for Eclipse

Press Ctrl+Alt+T, paste below command into the terminal and hit enter.

gksudo gedit /usr/share/applications/eclipse.desktop

Above command will create and open the launcher file for eclipse with gedit text editor.

Paste below content into the opened file and save it.

[Desktop Entry]
Name=Eclipse 4
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

Finally open Eclipse from Unity Dash search results and enjoy!

launch eclipse in ubuntu 14.04