# RHEL 8.0, Installing Elasticsearch with dnf

**URL:** <https://discuss.elastic.co/t/rhel-8-0-installing-elasticsearch-with-dnf/298773>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [March 3, 2022, 5:50pm UTC](https://discuss.elastic.co/t/rhel-8-0-installing-elasticsearch-with-dnf/298773 "2022-03-03T17:50:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoreyCBurton](https://avatars.discourse-cdn.com/v4/letter/c/6de8d8/32.png) [@CoreyCBurton](https://discuss.elastic.co/u/CoreyCBurton)\
**Post date:** [March 3, 2022, 5:50pm UTC](https://discuss.elastic.co/t/rhel-8-0-installing-elasticsearch-with-dnf/298773/1 "2022-03-03T17:50:34Z")

</div>

Hello,

I am installing Elasticsearch using the command sudo dnf install --enablerepo=Elasticsearch Elasticsearch

Is there any way to install this with security disabled?

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [March 3, 2022, 7:42pm UTC](https://discuss.elastic.co/t/rhel-8-0-installing-elasticsearch-with-dnf/298773/2 "2022-03-03T19:42:06Z")

</div>

Security is enabled by default and we strongly suggest that you keep it enabled unless you have good reasons not to.  
If that’s the case, you can always set  
`xpack.security.enabled: false` in `/etc/elasticsearch/elastisearch.yml` after installation.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 31, 2022, 7:42pm UTC](https://discuss.elastic.co/t/rhel-8-0-installing-elasticsearch-with-dnf/298773/3 "2022-03-31T19:42:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
