# Elasticsearch RPM installation conflicts old Elasticsearch

**URL:** <https://discuss.elastic.co/t/elasticsearch-rpm-installation-conflicts-old-elasticsearch/252419>\
**Category:** Elasticsearch\
**Created:** [October 17, 2020, 11:44am UTC](https://discuss.elastic.co/t/elasticsearch-rpm-installation-conflicts-old-elasticsearch/252419 "2020-10-17T11:44:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![H0bbit](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@H0bbit](https://discuss.elastic.co/u/H0bbit)\
**Post date:** [October 17, 2020, 11:44am UTC](https://discuss.elastic.co/t/elasticsearch-rpm-installation-conflicts-old-elasticsearch/252419/1 "2020-10-17T11:44:56Z")

</div>

Hi there,

I'm pretty new to Elasticsearch. I have been trying to install it on my Centos 7 server. I have been following a tutorial for installing elasticsearch-oss. Because I was playing with it, I have uninstalled it by removing all ES files. Probably not the right way to uninstall a package 🤔

At this moment I'm trying to install ES 7.x with RPM by following the original ES tutorial.  
When I run the command `yum.repos.d]# sudo yum install --enablerepo=elasticsearch elasticsearch` I'm getting the next error:

```
Error: elasticsearch-oss conflicts with elasticsearch-7.9.2-1.x86_64
Error: elasticsearch conflicts with elasticsearch-oss-7.9.2-1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

```

So it seems my new install conflicts with the old one. How do I get rid of the old (Elasticsearch-oss) install?

Thanks in advanced!

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 17, 2020, 3:49pm UTC](https://discuss.elastic.co/t/elasticsearch-rpm-installation-conflicts-old-elasticsearch/252419/2 "2020-10-17T15:49:19Z")

</div>

Try to remove the `elasticsearch-oss` package using yum.

```auto
# yum remove elasticsearch-oss-7.9.2-1.x86_64

```

If this does not work, try installing the `elasticsearch-oss` again and remove using `yum`, not deleting the files.

---

<div class="post-metadata">

**Author:** ![H0bbit](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@H0bbit](https://discuss.elastic.co/u/H0bbit)\
**Post date:** [October 24, 2020, 4:15pm UTC](https://discuss.elastic.co/t/elasticsearch-rpm-installation-conflicts-old-elasticsearch/252419/3 "2020-10-24T16:15:13Z")

</div>

Thanks @leandrojmp,

By reinstalling it and remove it the right way did the trick!

---

<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:** [November 21, 2020, 4:15pm UTC](https://discuss.elastic.co/t/elasticsearch-rpm-installation-conflicts-old-elasticsearch/252419/4 "2020-11-21T16:15:18Z")

</div>

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