How To Install IntelliJ IDEA on Rocky Linux 9
In this tutorial, we will show you how to install IntelliJ IDEA on Rocky Linux 9. For those of you who didn’t know, IntelliJ IDEA, a powerful and versatile Integrated Development Environment (IDE) by JetBrains, has become an essential tool for Java developers worldwide. With its rich set of features and intuitive interface, IntelliJ IDEA streamlines the development process and enhances productivity. The IDE is available in two editions: Community, which is free and open-source, and Ultimate, a commercial version with additional features.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo
‘ to the commands to get root privileges. I will show you the step-by-step installation of IntelliJ IDEA on Rocky Linux. 9.
Prerequisites
- A server running one of the following operating systems: Rocky Linux 9.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- SSH access to the server (or just open Terminal if you’re on a desktop).
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install IntelliJ IDEA on Rocky Linux 9
Step 1. It’s always a good practice to update your system packages and repositories before installing new software. Open the terminal and run the following commands:
sudo dnf sudo dnf update sudo dnf install dnf-utils epel-release
This command will fetch the latest package information and upgrade any outdated packages to their latest versions. Keeping your system up to date not only enhances security but also prevents potential compatibility issues during the installation process.
Step 2. Installing Java Development Kit (JDK)
IntelliJ IDEA requires a Java Development Kit (JDK) to run. You can install OpenJDK, an open-source implementation of the Java Platform, Standard Edition (Java SE). Run the following command to install OpenJDK 11:
sudo dnf install java-11-openjdk-devel
After the installation, verify the Java version by running:
java -version
Step 3. Installing IntelliJ IDEA on Rocky Linux 9.
By default, IntelliJ IDEA is not available on the Rocky Linux 9 base repository. So you will need to install Snapcraft on the system. If the Snapd package manager is not already installed then you can install it by running the following command below:
sudo dnf install snapd
sudo snap install core
Once the installation is complete, enable the Snap service by running:
sudo systemctl enable --now snapd.socket
With Snap installed and enabled, you can now proceed to install IntelliJ IDEA Community Edition. In the terminal, execute the following command:
# Ultimate Version # sudo snap install intellij-idea-ultimate --classic # Community Edition # sudo snap install intellij-idea-community --classic # Educational Edition # sudo snap install intellij-idea-educational --classic
The installation will take some time to complete. After installing IntelliJ IDEA, verify the installation using the below command:
sudo snap list intellij-idea-community
Step 4. Accessing IntelliJ IDEA on Rocky Linux 9.
Once the installation is completed, open the IntelliJ IDEA on your system by using the application search bar. Click on ‘Activities’ and then type ‘IntelliJ IDEA’ in the application search box or by executing the following command:
intellij-idea-community
Upon launching IntelliJ IDEA for the first time, you will be prompted to complete the initial setup. This includes selecting your preferred theme, configuring plugins, and setting up your Java Development Kit (JDK).
Congratulations! You have successfully installed IntelliJ IDEA. Thanks for using this tutorial for installing IntelliJ IDEA on your Rocky Linux 9 system. For additional help or useful information, we recommend you check the official Jetbrains website.