
In this article, we review different ways to install VSCode on Fedora 39, providing step-by-step instructions to ensure a seamless setup of the Visual Studio
Learn how to install and configure IntelliJ IDEA on RHEL 9 | CentOS 9. Follow this step-by-step guide with CLI examples, optimization tips, and performance tweaks for an efficient development environment.
IntelliJ IDEA is a powerful, feature-rich integrated development environment (IDE) designed for Java and other programming languages. Developed by JetBrains, it provides advanced coding assistance, debugging, and integration with various development tools. If you are using RHEL 9 or CentOS 9 and need a professional-grade IDE, IntelliJ IDEA is an excellent choice.
In this guide, we will walk you through the installation and configuration of IntelliJ IDEA on RHEL 9 and CentOS 9. This article is crafted with an SEO-focused approach to ensure it ranks high in search engine results.
Prerequisites |
Before proceeding with the installation, ensure your system meets the following requirements:
Requirement | Description |
---|---|
OS | RHEL 9 / CentOS 9 |
User Privileges | Sudo/root access |
Memory | Minimum 2GB RAM (Recommended: 4GB or more) |
Disk Space | At least 3GB free space |
Java Runtime | OpenJDK 11 or newer |
Step 1: Update System Packages |
First, update your system’s security packages and reboot it:
sudo dnf update -y && sudo systemctl reboot
Photo by admingeek from Infotechys
Step 2: Install IntelliJ IDEA |
There are two main ways to install IntelliJ IDEA on RHEL 9 | CentOS 9: using Snap or via the tar.gz archive.
Method 1: Installing IntelliJ IDEA via Snap |
Snap is a package management system that makes installation easier. First, enable Snap on RHEL/CentOS 9:
Install EPEL on RHEL 9 |
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
EPEL on CentOS 9 |
sudo dnf install -y epel-release
Install and Enable Snap |
sudo dnf install snapd -y
sudo systemctl enable --now snapd.socket
Once Snap is installed, install IntelliJ IDEA Community Edition:
sudo snap install intellij-idea-community --classic
For the Ultimate Edition:
sudo snap install intellij-idea-ultimate --classic
Troubleshooting Snap Install Error |
If you received the following error(s) (image below) during the install …
Photo by admingeek from Infotechys
Run the following commands:
sudo ln -s /var/lib/snapd/snap /snap
Then, try installing (community or ultimate) IntelliJ IDEA again:
sudo snap install intellij-idea-community --classic
Method 2: Installing IntelliJ IDEA via Tarball |
If you prefer to install IntelliJ IDEA manually, download the latest IntelliJ IDEA package:
wget https://download.jetbrains.com/idea/ideaIC-2023.1.tar.gz -O intellij.tar.gz
Extract the archive:
sudo tar -xvzf intellij.tar.gz -C /opt/
Move into the extracted directory:
cd /opt/idea-IC-*/bin/
Launch IntelliJ:
./idea.sh
Photo by admingeek from Infotechys
To run IntelliJ IDEA from anywhere, create a symbolic link:
sudo ln -s /opt/idea-IC-*/bin/idea.sh /usr/local/bin/intellij
Now, you can start IntelliJ IDEA with the command:
intellij
You may be prompted to enable a new UI once Intellij is launched. Click the Enable new UI button and the Restart button to launch the new UI:
Photo by admingeek from Infotechys
Set up Java Software Development Kit (SDK) |
|
|
|
|
Photo by admingeek from Infotechys
|
|
Photo by admingeek from Infotechys
Enabling Plugins |
Enhance your development experience by installing essential plugins:
|
|
|
Photo by admingeek from Infotechys
To ensure IntelliJ IDEA runs smoothly on RHEL 9 | CentOS 9, apply these optimizations:
Increase Memory Allocation |
Edit the IntelliJ JVM options file:
vim ~/.idea.vmoptions
Modify the following values:
-Xms1024m
-Xmx4096m
-XX:ReservedCodeCacheSize=512m
Save and exit the file.
Create a Desktop Icon |
For easier access to IntelliJ IDEA and better desktop integration, you can create a desktop icon or shortcut that allows user access from the system’s Activities Menu:
|
|
Photo by admingeek from Infotechys
|
|
|
Photo by admingeek from Infotechys
If you need to remove IntelliJ IDEA:
For Snap: |
sudo snap remove intellij-idea-community
For Manual Installation: |
sudo rm -rf /opt/idea-IC-* /usr/local/bin/intellij
Installing and configuring IntelliJ IDEA on RHEL 9 and CentOS 9 is straightforward with Snap or manual installation methods. By setting up the Java SDK, optimizing performance, and enabling essential plugins, you can create an efficient development environment tailored to your needs. Whether you are a Java developer or working with other languages, IntelliJ IDEA provides an excellent platform for coding, debugging, and project management.
Did you find this article useful? Your feedback helps us improve! Share your thoughts in the comments and spread the word with others who may find it helpful.
In this article, we review different ways to install VSCode on Fedora 39, providing step-by-step instructions to ensure a seamless setup of the Visual Studio
Are you wondering, which text editor should you choose?! Compare Visual Studio Code, Sublime Text, Atom, Notepad++, etc… to find the perfect tool for coding,
Learn how to install Eclipse IDE on RHEL 9 and CentOS 9 with this comprehensive step-by-step guide. From setting up Java to launching Eclipse, get