# Upgrading from Elasticsearch 1.4 to 2.x through yum?

**URL:** https://discuss.elastic.co/t/upgrading-from-elasticsearch-1-4-to-2-x-through-yum/51466
**Category:** Elasticsearch
**Created:** [May 31, 2016, 5:14pm UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-1-4-to-2-x-through-yum/51466 "2016-05-31T17:14:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dpcrown](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@dpcrown](https://discuss.elastic.co/u/dpcrown)
#### Post date: [May 31, 2016, 5:14pm UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-1-4-to-2-x-through-yum/51466/1 "2016-05-31T17:14:17Z")

</div>

Hi everyone, I just have a quick question about upgrading elasticsearch through yum. We have a 1.4 implementation here that we've been running into a few issues with, and we're considering upgrading to the latest version, since we are fairly out of date.

We installed it through yum initially, and my question is this: is upgrading as simple as switching the repository to the newest version and then doing "yum update elasticsearch"? The documentation for upgrading kinda glosses over that part a bit. Thanks!

---

<div class="post-metadata">

### Author: ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)
#### Post date: [May 31, 2016, 7:07pm UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-1-4-to-2-x-through-yum/51466/2 "2016-05-31T19:07:05Z")

</div>

Hi,

Prior to upgrading I'd recommend running the migration helper:

> **[elastic/elasticsearch-migration](https://github.com/elastic/elasticsearch-migration)**
>
> elasticsearch-migration - This plugin will help you to check whether you can upgrade directly to the next major version of Elasticsearch, or whether you need to make changes to your data and cluste...

You should start here for the upgrade instructions:

[https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html)

Also review all of the breaking changes as there are many and this may require you to make some manual changes to your elasticsearch.yml, mappings, etc:

[https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes.html)

At the very least you need to set the `network.host` parameter. In addition to upgrading Elasticsearch, you also need to upgrade the plugins.

---

<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: [July 5, 2017, 10:47pm UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-1-4-to-2-x-through-yum/51466/3 "2017-07-05T22:47:34Z")

</div>


