Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update already installed IntelliJ IDEA on Ubuntu?

Currently, I have IntelliJ IDEA 2016.3 installed in my Ubuntu 16.04 for Java programming. I have installed it through the IntelliJ website and not the ppa. Upon launching it, I get an update available notification on bottom right corner and upon clicking update, it opens the IntelliJ IDEA webpage for downloading the latest IDE tar file. I know that in order to install it, I need to download the tar file, untar it inusr/local, and run idea.sh from the bin folder. Even after doing that, when I search for IntelliJ in the Unity Dash, I see the icon for the old 2016.3 version and upon clicking it, it opens the same old version.

So my question is, how can I update the entire existing IntelliJ platform and see it as the result upon search in the Unity Dash? Can I update it in the same way in which I can update the existing plug-ins and see them in effect upon restarting IntelliJ?

like image 959
qrius Avatar asked May 01 '17 23:05

qrius


People also ask

How do I check for IntelliJ update?

Open the Toolbox App and click the Toolbox App menu icon in the top right corner. In the Toolbox App Settings dialog, expand Tools and select Update all tools automatically.

Where is IntelliJ installed Ubuntu?

Windows: %LOCALAPPDATA%\JetBrains\Toolbox\apps. macOS: ~/Library/Application Support/JetBrains/Toolbox/apps. Linux: ~/. local/share/JetBrains/Toolbox/apps.

How do I uninstall IntelliJ from Ubuntu?

Open the Apps & Features section in the Windows Settings dialog, select the IntelliJ IDEA app and click Uninstall. Depending on your version of Windows, the procedure for uninstalling programs may be different. You can also manually run Uninstall.exe in the installation directory under /bin.


2 Answers

I recommend using Toolbox App for the seamless automatic updates.

If you have upgraded manually, use the Tools | Create Command-line Launcher and Create Desktop Entry to update the old ones.

like image 77
CrazyCoder Avatar answered Oct 10 '22 01:10

CrazyCoder


I also suggest to use ToolBox but in case it is not an option, I just upgraded from IntelliJ 173 to 181 in Ubuntu 16.04 manually and I did it like this.

  1. Download the new IntelliJ version's .tar.gz file from Jetbrains website
  2. Untar the file and put all of its content to the desired location. I put mine in /opt folder for example: sudo tar -zxf ideaIU-2018.1.tar.gz -C /opt
  3. Go inside the new IntelliJ's folder and run the idea.sh script. Example: cd /opt/idea-IU-181.4203.550/bin then ./idea.sh and follow the instructions (select the option to import your settings from your previous Idea's version).

At this moment you have two versions installed but you run the old one when clicking on the Idea icon from the launcher. The problem is that the file (with extension .desktop) that sets up the launcher's icon still points to your old version. You can change that.

The desktop file may be in ~/.local/share/application or /usr/share/applications. Mine was in ~/.local/share/application and its name was jetbrains-idea.desktop.

  1. Edit jetbrains-idea.desktop file with your favorite editor and change the values that need to be changed. In my case I only had to change the values of "Icon" and "Exec" properties. Check the real path from your IntelliJ's installation folder (what we did in point 2 above). Example below of my modified .desktop file:

    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=IntelliJ IDEA Ultimate Edition
    Icon=/opt/idea-IU-181.4203.550/bin/idea.png
    Exec="/opt/idea-IU-181.4203.550/bin/idea.sh" %f
    Comment=The Drive to Develop
    Categories=Development;IDE;
    Terminal=false
    StartupWMClass=jetbrains-idea
    
  2. Save the file and check that its syntax with the command desktop-file-validate pathOfYour.desktopFile (no output means all is fine).

  3. Update your system with the latest changes for .desktop files: sudo update-desktop-database.

  4. Check that the icon from the launcher now launches the new version of IntelliJ. If it does not, log off and log on from Ubuntu. That should do.

  5. You can delete the directory of your previous IntelliJ's version + its hidden directory in your home folder.

  6. You may want to update the values of the executable file /usr/local/bin/idea (if it exists) to point to your new version.

like image 26
Stephane B. Avatar answered Oct 10 '22 03:10

Stephane B.