diff --git a/_install-and-configure/install-opensearch/rpm.md b/_install-and-configure/install-opensearch/rpm.md index c9950b80..ac3ff4e0 100644 --- a/_install-and-configure/install-opensearch/rpm.md +++ b/_install-and-configure/install-opensearch/rpm.md @@ -38,12 +38,30 @@ This guide assumes that you are comfortable working from the Linux command line 1. Download the RPM package for the desired version directly from the [OpenSearch downloads page](https://opensearch.org/downloads.html){:target='\_blank'}. The RPM package can be downloaded for both **x64** and **arm64** architectures. 1. Import the public GNU Privacy Guard (GPG) key. This key verifies that your OpenSearch instance is signed. + ```bash sudo rpm --import https://artifacts.opensearch.org/publickeys/opensearch.pgp ``` {% include copy.html %} + +1. For OpenSearch 2.12 and greater, a custom admin password is required in order to set up a security demo configuration. To set a custom admin password, use one the following commands: + ```bash + # Install the x64 package using yum. + sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD= yum install opensearch-{{site.opensearch_version}}-linux-x64.rpm + + # Install the x64 package using rpm. + sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD= rpm -ivh opensearch-{{site.opensearch_version}}-linux-x64.rpm + + # Install the arm64 package using yum. + sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD= yum install opensearch-{{site.opensearch_version}}-linux-x64.rpm + + # Install the arm64 package using rpm. + sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD= rpm -ivh opensearch-{{site.opensearch_version}}-linux-x64.rpm + ``` + 1. From the CLI, you can install the package with `rpm` or `yum`. + ```bash # Install the x64 package using yum. sudo yum install opensearch-{{site.opensearch_version}}-linux-x64.rpm @@ -57,36 +75,27 @@ This guide assumes that you are comfortable working from the Linux command line # Install the arm64 package using rpm. sudo rpm -ivh opensearch-{{site.opensearch_version}}-linux-x64.rpm ``` -For OpenSearch 2.12 and greater, a custom admin password is required in order to set up a security demo configuration. To set a custom admin password, use one the following commands: - ```bash - # Install the x64 package using yum. - sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD= yum install opensearch-{{site.opensearch_version}}-linux-x64.rpm - # Install the x64 package using rpm. - sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD= rpm -ivh opensearch-{{site.opensearch_version}}-linux-x64.rpm - - # Install the arm64 package using yum. - sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD= yum install opensearch-{{site.opensearch_version}}-linux-x64.rpm - - # Install the arm64 package using rpm. - sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD= rpm -ivh opensearch-{{site.opensearch_version}}-linux-x64.rpm 1. After the installation succeeds, enable OpenSearch as a service. - ```bash - sudo systemctl enable opensearch - ``` - {% include copy.html %} + + ```bash + sudo systemctl enable opensearch + ``` + {% include copy.html %} 1. Start OpenSearch. - ```bash - sudo systemctl start opensearch - ``` - {% include copy.html %} -1. Verify that OpenSearch launched correctly. - ```bash - sudo systemctl status opensearch - ``` - {% include copy.html %} + ```bash + sudo systemctl start opensearch + ``` + {% include copy.html %} + +1. Verify that OpenSearch launched correctly: + + ```bash + sudo systemctl status opensearch + ``` + {% include copy.html %} ### Install OpenSearch from a YUM repository @@ -518,4 +527,4 @@ sudo yum update - [OpenSearch configuration]({{site.url}}{{site.baseurl}}/install-and-configure/configuring-opensearch/) - [Install and configure OpenSearch Dashboards]({{site.url}}{{site.baseurl}}/install-and-configure/install-dashboards/index/) - [OpenSearch plugin installation]({{site.url}}{{site.baseurl}}/opensearch/install/plugins/) -- [About the Security plugin]({{site.url}}{{site.baseurl}}/security/index/) \ No newline at end of file +- [About the Security plugin]({{site.url}}{{site.baseurl}}/security/index/)