# How to uninstall Filebeat using Yum

**URL:** <https://discuss.elastic.co/t/how-to-uninstall-filebeat-using-yum/53555>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 21, 2016, 6:34pm UTC](https://discuss.elastic.co/t/how-to-uninstall-filebeat-using-yum/53555 "2016-06-21T18:34:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![keya](https://avatars.discourse-cdn.com/v4/letter/k/8baadc/32.png) [@keya](https://discuss.elastic.co/u/keya)\
**Post date:** [June 21, 2016, 6:34pm UTC](https://discuss.elastic.co/t/how-to-uninstall-filebeat-using-yum/53555/1 "2016-06-21T18:34:18Z")

</div>

Hi,  
I am trying to install Filebeat-alpha version on a machine which already had an older version of filebeat running.  
How can I upgrade to Filebeat-alpha. I tried to follow install instructions for alpha version but I am getting below error:

`Preparing packages for installation... file /etc/filebeat/filebeat.template.json from install of filebeat-5.0.0_alpha3-1.x86_64 conflicts with file from package filebeat-1.2.3-1.x86_64 file /etc/filebeat/filebeat.yml from install of filebeat-5.0.0_alpha3-1.x86_64 conflicts with file from package filebeat-1.2.3-1.x86_64 file /etc/init.d/filebeat from install of filebeat-5.0.0_alpha3-1.x86_64 conflicts with file from package filebeat-1.2.3-1.x86_64 file /lib/systemd/system/filebeat.service from install of filebeat-5.0.0_alpha3-1.x86_64 conflicts with file from package filebeat-1.2.3-1.x86_64`

How can I uninstall the older version or upgrade to alpha version?

Thanks

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [June 21, 2016, 6:39pm UTC](https://discuss.elastic.co/t/how-to-uninstall-filebeat-using-yum/53555/2 "2016-06-21T18:39:01Z")

</div>

If you installed via yum, try

`sudo yum remove filebeat`

---

<div class="post-metadata">

**Author:** ![keya](https://avatars.discourse-cdn.com/v4/letter/k/8baadc/32.png) [@keya](https://discuss.elastic.co/u/keya)\
**Post date:** [June 21, 2016, 6:43pm UTC](https://discuss.elastic.co/t/how-to-uninstall-filebeat-using-yum/53555/3 "2016-06-21T18:43:18Z")

</div>

Thanks. That worked!

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [June 21, 2016, 6:51pm UTC](https://discuss.elastic.co/t/how-to-uninstall-filebeat-using-yum/53555/4 "2016-06-21T18:51:31Z")

</div>


