Upgrading ElasticSearch from 5.0 to 6.0 on CentOS

AndyB

Well-known member
Upgrading ElasticSearch from 5.0 to 6.0 was really easy. Here are the steps I took.

1) Log into your server terminal as root.

2) Uninstall ElasticSearch 5.0 with the following command:

yum remove elasticsearch

3) From the instructions "Download and install the RPM manually" located on this page:

https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html

Run these commands at the terminal:

Code:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.0.rpm
sha1sum elasticsearch-6.0.0.rpm 
sudo rpm --install elasticsearch-6.0.0.rpm


4) That's it, you have now upgraded to ElasticSearch 6.0.

5) Last step is to go to the Admin control panel and rebuild the search index.
 
Last edited:
Upgrading ElasticSearch from 5.0 to 6.0 was really easy. Here are the steps I took.

1) Log into your server terminal as root.

2) Uninstall ElasticSearch 5.0 with the following command:

yum remove elasticsearch

3) From the instructions "Download and install the RPM manually" located on this page:

https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html

Run these commands at the terminal:

Code:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.0.rpm
sha1sum elasticsearch-6.0.0.rpm
sudo rpm --install elasticsearch-6.0.0.rpm


4) That's it, you have now upgraded to ElasticSearch 6.0.

5) Last step is to go to the Admin control panel and rebuild the search index.
Just to add to this, if a person already has ElasticSearch installed via yum, instead of removing it then installing the RPM directly, they can continue to use yum to manage it and keep it updated by editing the .repo file as explained in the link you provided, under the heading Installing from the RPM repository (edit your existing repo file with the content they have).
 
Back
Top Bottom