Elasticsearch 9.x Upgrade (Linux)
Was this helpful?
This article outlines the steps to upgrade Elasticsearch to version 9 in a Linux environment. The process includes verifying the current installation, removing the existing version, and installing the updated version using automated scripts. Following these steps ensures a consistent and controlled upgrade process.
Ensure the Java upgrade process on the Linux machine is completed.
Confirm access to the server with the required permissions to execute shell scripts.
Ensure network access to download scripts from the provided URLs.
Verify that Elasticsearch credentials are available for post-installation validation.
Run the following command to check the currently installed Elasticsearch version:
curl -XGET -u elastic:0valEdge! http://localhost:9200 Review the response to confirm the existing version. Sample Reference Screenshot:

Download and execute the uninstall script:
Sample Reference Screenshot:

Ensure the script completes successfully before proceeding.
Download and execute the installation script:
Sample Reference Screenshot:

Wait for the installation process to complete.
Run the following command to verify the upgraded version:
Confirm that the response reflects Elasticsearch version 9.
Copyright © 2026, OvalEdge LLC, Peachtree Corners, GA, USA.
Was this helpful?
Was this helpful?
wget https://ovaledge.s3.us-west-1.amazonaws.com/scripts/8x_automation/remove_elasticsearch.sh
sh remove_elasticsearch.shwget https://ovaledge.s3.us-west-1.amazonaws.com/scripts/8x_automation/install_es.sh
sh install_es.shcurl -XGET -u elastic:0valEdge! http://localhost:9200
