How To Install Elasticsearch on Ubuntu 24.10

To install Elasticsearch on Ubuntu 24.10, follow these steps.

Step 1 : Update the Package List

First, make sure your package list is up-to-date by running:

Step 2 : Install apt-transport-https

Elasticsearch requires the apt-transport-https package to access external repositories securely. Install it with:

Step 3 : Add the Elasticsearch GPG Key

Download and add the official Elasticsearch GPG key to verify packages:

Step 4 : Add the Elasticsearch Repository

Add the official repository to your system:

Step 5 : Update Package List Again

After adding the new repository, update your package list:

Step 6 : Install Elasticsearch

Now, install Elasticsearch with the following command:

Step 7 : Start Elasticsearch

Once installed, start the Elasticsearch service:

Step 8 : Enable Elasticsearch to Start on Boot

Make sure Elasticsearch starts automatically on system boot:

Step 9 : Reset the elastic User Password

After enabling security, reset the default elastic user password:

Step 10 : Verify Installation

To verify that Elasticsearch is working, use the following command:

Congratulations! You have successfully installed and configured Elasticsearch on Ubuntu 24.10.