How to Install IntelliJ IDEA on Ubuntu 22.04 – 3 Easy Methods

IntelliJ IDEA is an IDE for the JVM (Java Virtual Machine) platform and supports the Java, Groovy, JavaScript, and SQL programming languages; moreover, it contains all the tools that are needed for the development of mobile and web applications. The IDEA is not free to use, but they offer a 30-day free trial so you can download and use the thirty days trial version and if you feel like using it, you can buy the subscription to IntelliJ IDEA.

In this guide, we will discuss some methods by which IntelliJ IDEA can be installed on the latest version of Ubuntu 22.04.

Method 1: How to install IntelliJ IDEA on Ubuntu 22.04 using the PPA repository

Usually, the installation package does not come with the default repository of Ubuntu so we will add the repository of Intellij-idea using the command:

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

Then refresh the packages by updating the repository:

$ sudo apt update

Now install the Ultimate version of IntelliJ IDEA by using the command:

$ sudo apt install intellij-idea-ultimate -y

To launch the IntelliJ IDEA, we will use the command:

$ intellij-idea-ultimate

And if you want to remove it with all its configuration files, then use the command:

$ sudo apt purge intellij-idea-ultimate -y

Method 2: How to install IntelliJ IDEA on Ubuntu 22.04 from the Snapcraft

Second method to install the IntelliJ IDEA on Ubuntu is by downloading the snap of IntelliJ IDEA from the Snapcraft and install it using the snapd utility:

$ sudo snap install intellij-idea-ultimate --classic

In order to launch the IntelliJ-IDEA, go to the Application’s search bar and type “intellij-idea”, then click on the icon to launch it:

To remove IntelliJ-IDEA using the snap utility, use the command:

$ sudo snap remove intellij-idea-ultimate

Method 3: How to install IntelliJ IDEA on Ubuntu 22.04 from the Flathub

The last method to install IntelliJ-IDEA on Ubuntu is by downloading its package from the flatub but for this we need a flatpak utility which can be installed using the command:

$ sudo apt install flatpak -y

Now with the help of flatpak, we will install IntelliJ-IDEA by downloading it from the flathub:

$ flatpak install flathub com.jetbrains.IntelliJ-IDEA-Ultimate

To run IntelliJ-IDEA, use the flatpak command:

$ flatpak run com.jetbrains.IntelliJ-IDEA-Ultimate

To delete the application of IntelliJ-IDEA, use the flatpak command:

$ flatpak uninstall flathub com.jetbrains.IntelliJ-IDEA-Ultimate


IntelliJ-IDEA is an IDE that provides all the basic tools which are needed to compile and run the scripts of Java, JavaScript, and other programming languages. In this guide, IntelliJ-IDEA is installed by three different methods on Ubuntu 22.04.