Install OpenSearch on Linux without using Docker
As Magento2 latest version supports the 2.5.0 version only, so I will be sharing the steps to install that from the APT repository directly. In this, all the steps are referenced from the OpenSearch official documentation:
Install OpenSearch from an APT repository
APT, the primary package management tool for Debian–based operating systems, allows you to download and install the Debian package from the APT repository.
Step 1: Install the necessary packages.
Step 2: Import the public GPG key. This key is used to verify that the APT repository is signed.
Step 3: Create an APT repository for OpenSearch:
Step 4: Verify that the repository was created successfully.
Step 5: With the repository information added, list all available versions of OpenSearch:
Step 6: Choose the version of OpenSearch you want to install:
i. Unless otherwise indicated, the latest available version of OpenSearch is installed.
ii: To install a specific version of OpenSearch. Specify the version manually using opensearch=<version>
Step 7: Once complete, enable OpenSearch.
Step 7: Start OpenSearch.
Step 8: Verify that OpenSearch launched correctly.
Step 9: Test OpenSearch
You should get a response that looks like this:
Query the plugins endpoint:
The response should look like this:
To Get the more information please read the official documentation