Install Eclipse IDE on Rocky Linux 9 [Step-by-Step]


Rocky Linux

Author: Omer Cakmak
Reviewer: Deepak Prasad

Eclipse is an open source(Eclipse Public License) and free integrated development environment. Although its main focus is on Java and Java-related technologies, it is also used for different languages such as C and Python, thanks to its flexible structure.

We will install this application, which can be installed on Windows, Mac OS X, Solaris operating systems and Linux distributions, on Rocky Linux 9.

 

Different methods to install Eclipse

Since Eclipse is a desktop application with a graphical interface, it must have a GUI in your operating system.  If your Rocky Linux 9 operating system does not have a GUI, install the GUI with the following commands:

[root@localhost foc]# dnf -y groupinstall "Server with GUI"
[root@localhost foc]# systemctl set-default graphical

After the above operations, the system is rebooted:

[root@rocky9 foc]# reboot now

We will describe the Eclipse installation in 2 ways:

  • Install with Eclipse Installer
  • Install with SNAP

 

Method-1 Install with Eclipse Installer

Login from the graphical interface and enter the terminal application. Then, the file with the extension ".tar.gz" for Linux systems is downloaded from the Eclipse official address:

[foc@localhost ~]$ wget https://ftp.fau.de/eclipse/oomph/epp/2022-09/R/eclipse-inst-jre-linux64.tar.gz
--2022-10-02 21:25:06-- https://ftp.fau.de/eclipse/oomph/epp/2022-09/R/eclipse-inst-jre-linux64.tar.gz
Resolving ftp.fau.de (ftp.fau.de)... 131.188.12.211, 2001:638:a000:1021:21::1
Connecting to ftp.fau.de (ftp.fau.de)|131.188.12.211|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 98217433 (94M) [application/x-gzip]
Saving to: ‘eclipse-inst-jre-linux64.tar.gz.1’

eclipse-inst-jre-linux6 100%[=============================>] 93.67M 1.73MB/s in 51s

2022-10-02 21:25:57 (1.84 MB/s) - ‘eclipse-inst-jre-linux64.tar.gz.1’ saved [98217433/98217433]

The tar compressed file is extracted:

[foc@localhost ~]$ tar -xf eclipse-inst-jre-linux64.tar.gz

Change to the eclipse-installer directory:

[foc@localhost ~]$ cd eclipse-installer/

Then the installer application is run:

[foc@localhost eclipse-installer]$ ./eclipse-inst

After this step, complete the installation by following the screens below:

Install Eclipse IDE on Rocky Linux 9 [Step-by-Step]


Install Eclipse IDE on Rocky Linux 9 [Step-by-Step]


Install Eclipse IDE on Rocky Linux 9 [Step-by-Step]


Install Eclipse IDE on Rocky Linux 9 [Step-by-Step]


Install Eclipse IDE on Rocky Linux 9 [Step-by-Step]


Install Eclipse IDE on Rocky Linux 9 [Step-by-Step]


Install Eclipse IDE on Rocky Linux 9 [Step-by-Step]


Congratulations, the installation completed successfully. Version information:

Version: 2022-09 (4.25.0)
Build id: 20220908-1902

 

Method-2 Install with SNAP

Activate the epel repository for Snap software packaging and distribution system setup:

[foc@localhost ~]$ sudo dnf -y install epel-release
Last metadata expiration check: 1:26:56 ago on Sun 02 Oct 2022 09:19:49 PM +03.
Dependencies resolved.
==============================================================================================
Package Architecture Version Repository Size
==============================================================================================
Installing:
epel-release noarch 9-4.el9 extras 19 k

Transaction Summary
==============================================================================================
Install 1 Package

Total download size: 19 k
Installed size: 25 k
Downloading Packages:
epel-release-9-4.el9.noarch.rpm 58 kB/s | 19 kB 00:00
----------------------------------------------------------------------------------------------
Total 18 kB/s | 19 kB 00:01
...
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

Verifying : epel-release-9-4.el9.noarch 1/1

Installed:
epel-release-9-4.el9.noarch

Complete!

Install the snapd package from the epel repository:

[foc@localhost ~]$ sudo dnf install snapd -y
Extra Packages for Enterprise Linux 9 - x86_64 1.5 MB/s | 10 MB 00:07
Last metadata expiration check: 0:00:02 ago on Sun 02 Oct 2022 10:47:17 PM +03.
Dependencies resolved.
==============================================================================================
Package Architecture Version Repository Size
==============================================================================================
Installing:
snapd x86_64 2.56.2-1.el9 epel 15 M
Installing dependencies:
snap-confine x86_64 2.56.2-1.el9 epel 2.5 M
snapd-selinux noarch 2.56.2-1.el9 epel 230 k

Transaction Summary
==============================================================================================
Install 3 Packages

Total download size: 17 M
Installed size: 63 M
Downloading Packages:
(1/3): snapd-selinux-2.56.2-1.el9.noarch.rpm 168 kB/s | 230 kB 00:01
(2/3): snap-confine-2.56.2-1.el9.x86_64.rpm 998 kB/s | 2.5 MB 00:02
(3/3): snapd-2.56.2-1.el9.x86_64.rpm 1.4 MB/s | 15 MB 00:10
----------------------------------------------------------------------------------------------
Total 1.6 MB/s | 17 MB 00:11
Extra Packages for Enterprise Linux 9 - x86_64 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x3228467C:
Userid : "Fedora (epel9) <epel@fedoraproject.org>"
Fingerprint: FF8A D134 4597 106E CE81 3B91 8A38 72BF 3228 467C
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
...
Installing : snapd-2.56.2-1.el9.x86_64 3/3
Running scriptlet: snapd-2.56.2-1.el9.x86_64 3/3
Verifying : snapd-selinux-2.56.2-1.el9.noarch 3/3

Installed:
snap-confine-2.56.2-1.el9.x86_64 snapd-2.56.2-1.el9.x86_64
snapd-selinux-2.56.2-1.el9.noarch

Complete!

Enable the snapd socket:

[foc@localhost ~]$ sudo systemctl enable --now snapd.socket
Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /usr/lib/systemd/system/snapd.socket.

Link snap for ease of use:

[foc@localhost ~]$ sudo ln -s /var/lib/snapd/snap /snap

Reboot the system for the changes to take effect:

[foc@localhost ~]$ sudo reboot

After the reboot, the last step is to install the eclipse classic version:

[foc@localhost ~]$ sudo snap install eclipse --classic
[sudo] password for foc:
2022-10-02T22:50:56+03:00 INFO Waiting for automatic snapd restart...
eclipse 2022-06 from Snapcrafters installed

When you call the application from the menu, the following version will greet you.

Install Eclipse IDE on Rocky Linux 9 [Step-by-Step]

We have installed Eclipse Classic version from Snap repositories.

 

Summary

Although the version with Snap was a little behind, it was a stable and easy installation. Installation with the Eclipse installer provided the current version installation, but required a little more manual processing.

We have presented 2 different methods for installing Eclipse on Rocky Linux 9. We hope it will be useful.

 

Omer Cakmak

Omer Cakmak

He is highly skilled at managing Debian, Ubuntu, CentOS, Oracle Linux, and Red Hat servers. Proficient in bash scripting, Ansible, and AWX central server management, he handles server operations on OpenStack, KVM, Proxmox, and VMware. You can connect with him on his LinkedIn profile.

Can't find what you're searching for? Let us assist you.

Enter your query below, and we'll provide instant results tailored to your needs.

If my articles on GoLinuxCloud has helped you, kindly consider buying me a coffee as a token of appreciation.

Buy GoLinuxCloud a Coffee

For any other feedbacks or questions you can send mail to admin@golinuxcloud.com

Thank You for your support!!

Leave a Comment