> For the complete documentation index, see [llms.txt](https://docs.ovaledge.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ovaledge.com/release8.2/deployment-and-maintenance/upgrade/elasticsearch-9.x-upgrade-linux.md).

# Elasticsearch 9.x Upgrade (Linux)

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.

## Prerequisites

* 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.

## Steps Involved

### Verify Existing Elasticsearch Version

* 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:

  <figure><img src="/files/WZWCMpjH0d3CNzvSorSl" alt=""><figcaption></figcaption></figure>

### Uninstall Existing Elasticsearch

* Download and execute the uninstall script:

  ```
  wget https://ovaledge.s3.us-west-1.amazonaws.com/scripts/8x_automation/remove_elasticsearch.sh
  sh remove_elasticsearch.sh
  ```

  \
  Sample Reference Screenshot:

  <figure><img src="/files/quOX0OBTYhDBntlOTIAY" alt=""><figcaption></figcaption></figure>
* Ensure the script completes successfully before proceeding.

### Install Elasticsearch Version 9

* Download and execute the installation script:

  ```
  wget https://ovaledge.s3.us-west-1.amazonaws.com/scripts/8x_automation/install_es.sh
  sh install_es.sh
  ```

  \
  Sample Reference Screenshot:

  <figure><img src="/files/IVlujd6yyxUNnAQXcklk" alt=""><figcaption></figcaption></figure>
* Wait for the installation process to complete.

### Validate Elasticsearch Installation

* Run the following command to verify the upgraded version:

  ```
  curl -XGET -u elastic:0valEdge! http://localhost:9200
  ```
* Confirm that the response reflects Elasticsearch version 9.

***

Copyright © 2026, OvalEdge LLC, Peachtree Corners, GA, USA.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ovaledge.com/release8.2/deployment-and-maintenance/upgrade/elasticsearch-9.x-upgrade-linux.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
