How To Install Elasticsearch on Fedora 36/35/34/33/32

Posted on 21 views

In this guide, we will cover the installation of Elasticsearch 8.x/7.x/6.x on Fedora 36/35/34/33/32. Elasticsearch is a highly scalable open-source analytics engine and full-text search. With Elasticsearch, you can store, search, and analyze big volumes of data faster and in near real-time.

Follow the steps provided in this article to have a working installation of Elasticsearch 8/7/6 on Fedora 36/35/34/33/32.

For multi-node cluster, refer to:

Step 1: Install Java on Fedora

Elasticsearch depends on Java, you need it installed on your machine prior to installing Elasticsearch on Fedora. Default upstream version of OpenJDK can be installed on Fedora by running the commands:

sudo yum install lsof java-11-openjdk java-11-openjdk-devel -y

After the installation of Java, you can quickly confirm the version using the following command:

$ java -version
openjdk version "" 2022-08-12
OpenJDK Runtime Environment (Red_Hat- (build
OpenJDK 64-Bit Server VM (Red_Hat- (build, mixed mode, sharing)

Step 2: Install Elasticsearch on Fedora

After installing Java JDK, add Elasticsearch repository to your Fedora system.

1. Import GPG Key

sudo rpm --import

2. Add Repository

For Elasticsearch 8.x

cat <

For Elasticsearch 7.x

cat <

For Elasticsearch 6.x.

cat <

3.  Install Elasticsearch on Fedora

Elasticsearch repository is ready for use. You can install Elasticsearch using the command below:

sudo dnf makecache
sudo dnf install elasticsearch-oss

Hit the key to start installation of Elasticsearch on Fedora:

Dependencies resolved.
 Package              Arch      Version      Repository            Size
 elasticsearch-oss    x86_64    7.10.2-1      elasticsearch-7.x    211 M

Transaction Summary
Install  1 Package

Total download size: 211 M
Installed size: 379 M
Is this ok [y/N]: y

JVM options like memory limits are set on /etc/elasticsearch/jvm.options

sudo vi /etc/elasticsearch/jvm.options

Start and enable elasticsearch service on boot:

sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch

Check status:

$ systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: active (running) since Fri 2020-05-01 18:25:35 UTC; 13s ago
Main PID: 10229 (java)
Tasks: 46 (limit: 2337)
Memory: 1.1G
CPU: 10.963s
CGroup: /system.slice/elasticsearch.service
└─10229 /usr/share/elasticsearch/jdk/bin/java -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTou>
May 01 18:25:21 fed32.novalocal systemd[1]: Starting Elasticsearch…
May 01 18:25:22 fed32.novalocal elasticsearch[10229]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and wil>
May 01 18:25:35 fed32.novalocal systemd[1]: Started Elasticsearch.

Test to verify that it is working:

$ curl 

  "name" : "fed32.novalocal",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "p44JohgqQcuwJj0iADuLiw",
  "version" : 
    "number" : "7.6.2",
    "build_flavor" : "oss",
    "build_type" : "rpm",
    "build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
    "build_date" : "2020-03-26T06:34:37.794943Z",
    "build_snapshot" : false,
    "lucene_version" : "8.4.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  "tagline" : "You Know, for Search"

Step 3: Install Kibana on Fedora

Kibana lets you visualize your Elasticsearch data and navigate the Elastic Stack. Install it after adding the repository using the command:

sudo dnf install -y kibana-oss

After a successful installation, configure Kibana

$ sudo vi /etc/kibana/kibana.yml "" ""
elasticsearch.url: "http://localhost:9200"

Change other settings as desired then start Kibana service:

sudo systemctl enable --now kibana

Access http://ip-address:5601 to open Kibana Dashboard:


If you have an active firewall, you’ll need to allow access to Kibana port:

sudo firewall-cmd --add-port=5601/tcp --permanent
sudo firewall-cmd --reload

For Ubuntu users, check

Other Elasticsearch guides:


Gravatar Image
A systems engineer with excellent skills in systems administration, cloud computing, systems deployment, virtualization, containers, and a certified ethical hacker.