How to Install IntelliJ IDEA on Ubuntu 22.04 LTS

IntelliJ IDEA is an excellent choice for any developer who wants to have all their tools in one place. Whether you’re looking into developing software or want some help getting started with it, this program has something that will work perfectly! This IDE comes loaded up with features like Syntax Highlighting, which makes coding much easier on the eyes than staring at code after struggling through challenging sections of programming languages due mainly because they were hard/impossible without being able to see what’s going wrong while typing away only wishing.

Anyone who has ever worked with other IDEs will find their way around in no time, thanks to this great program’s ease of use and practicality for developing Java programs, especially Kotlin or Groovy, if you’re working on Android apps! Its integration, such as Git (for committing changes), SVN(to check outsources), and Mercurial & CVS, make it even more helpful, so don’t forget about them when choosing your software development tool.

In the following tutorial, you will learn how to Install the latest IntelliJ IDEA on Ubuntu 22.04 LTS Jammy Jellyfish using the command line terminal and the LaunchPAD PPA by the Marcel Kapfer to install the latest possible version of the community or ultimate edition, along with some essential tips on maintaining and remove the software in the future if required.

Update Ubuntu

Before you begin, update your system to ensure all existing packages are up to date to avoid any conflicts during the installation.

sudo apt update && sudo apt upgrade -y

Install Dependencies

Use the following command to install or check if the packages are installed.

sudo apt install software-properties-common apt-transport-https -y

Import IntelliJ IDEA PPA

The best option is to install the PPA by Marcel Kapfer, which contains the latest community and ultimate editions.

In your terminal, use the following command to import the PPA.

sudo add-apt-repository ppa:mmk2410/intellij-idea -y

Install IntelliJ IDEA

Before running the installation command, run an apt update to reflect the new imported PPA.

sudo apt-get update

Next, install the corresponding version that you are after with the “Community” or “Ultimate” available to install.

Install IntelliJ IDEA – Community

sudo apt install intellij-idea-community -y

Install IntelliJ IDEA – Ultimate

sudo apt install intellij-idea-ultimate -y

Install IntelliJ IDEA – Snapcraft Method

The second option is to install with Snap. The Snapcraft package manager should be installed on your Ubuntu desktop unless you have removed it previously. From my understanding Flatpak out of the Flatpak vs. Snap battle for this package is constantly updated more quickly by a few weeks each time; be aware.

For users that removed snapd, re-run the following command:

sudo apt install snapd -y

Once installed, you will need to restart your system, or else the icons may not appear; if you skip a repeat and notice any issues, reboot.

reboot

Snap installed? Skip the following few lines and proceed straight to the installation with Snap

Next, some packages come in classic, so you need to create a symlink to enable classic snap support, so it is best to run this command for the best snap compatibility.

sudo ln -s /var/lib/snapd/snap /snap

Install the core files to avoid conflicting issues.

sudo snap install core

Next, install the corresponding version that you are after with the “Community” or “Ultimate” available to install.

Install IntelliJ IDEA – Community

sudo snap install intellij-idea-community --classic

Install IntelliJ IDEA – Ultimate

sudo snap install intellij-idea-ultimate --classic

Install IntelliJ IDEA – Educational

Snapcraft provides the additional third option, unlike the PPA with IntelliJ IDEA Education.

sudo snap install intellij-idea-educational --classic

How to Launch IntelliJ IDEA

The best method to launch IntelliJ IDEA is to use the application icon found in the applications menu; you can right-click and create a shortcut if you utilize the software regularly.

Activities > Show Applications > IntelliJ IDEA {version you installed}

Example:

How to Install IntelliJ IDEA on Ubuntu 22.04 LTS

On the first time launch, you will be prompted to accept the terms of use of the software and other notifications.

Example:

How to Install IntelliJ IDEA on Ubuntu 22.04 LTS

Once open, you can begin using the IntelliJ IDEA IDE as you see fit. The community one is limited compared to the paid editions, but it will work great for most users and is highly utilized amongst the community.

Example:

How to Install IntelliJ IDEA on Ubuntu 22.04 LTS

And that is it, and you have successfully installed the latest version of your choice of IntelliJ IDEA.

How to Update/Upgrade IntelliJ IDEA

The software should update by itself with your system packages for desktop users using the APT package manager. For users that would like to check manually, use the following command in your terminal.

sudo apt update && sudo apt upgrade

Snapcraft users can use the following terminal command to check all your snap packages for updates.

sudo snap refresh

How to Remove (Uninstall) IntelliJ IDEA

Use the following command entirely for users who no longer wish to have IntelliJ IDEA on their system and want to remove the software. Use the following command that matches your installation.

APT Remove Method

IntelliJ IDEA – Community

sudo apt autoremove intellij-idea-community --purge -y

IntelliJ IDEA – Ultimate

sudo apt autoremove intellij-idea-ultimate --purge -y

Also, remember the PPA repository as this is no longer needed. The command looks familiar to adding the repository, and this time you said the syntax “–remove” flag for removal.

sudo add-apt-repository --remove ppa:mmk2410/intellij-idea -y

Snapcraft Remove Method

IntelliJ IDEA – Community

sudo snap remove --purge intellij-idea-community

IntelliJ IDEA – Ultimate

sudo snap remove --purge intellij-idea-ultimate

Remove IntelliJ IDEA – Educational

sudo snap remove --purge intellij-idea-educational

Comments and Conclusion

In the tutorial, you have learned how to install IntelliJ IDEA on Ubuntu 22.04 LTS Jammy Jellyfish using various APT Package managers or Snapcraft with snaps.

IDEA is a great program, and it’s no wonder that it has become so popular among developers. This IDE can make your development process more straightforward with its many features and capabilities. If you’re looking for an all-inclusive development environment, then IntelliJ IDEA is a perfect choice!



Follow LinuxCapable.com!

Like to get automatic updates? Follow us on one of our social media accounts!