Installing Elasticsearch on CentOS using RPM


I'm currently running ElasticSearch Version: 5.0.1 on my CentOS dedicated server. It also has cPanel, but I assume the easiest way for me to upgrade to ElasticSearch 6.0.0 is to use the RPM instruction located here:

My question is, does it matter which directory I'm in after I SSH into my server? Do I just run the following three commands from the root directory?

Thank you

That will work, yes.

Thank you, warkolm.

The first two commands worked fine, but the last one appears to have some problems. This is a screen print of my terminal showing the messages:

What should I do?

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them :slight_smile:

I assume that I need to uninstall ElasticSearch Version: 5.0.1.

Is this the correct command?

yum remove elasticsearch

Yes, that should remove the existing Elasticsearch. But you should also be able to install 6.0 over the top of 5.

It'd be worth reading

I was able to install ElasticSearch 6.0 by first uninstalling 5.0 using the following command:

yum remove elasticsearch

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