#!/usr/bin/env bash wget "https://artifacts.opensearch.org/publickeys/opensearch.pgp" -O "opensearch.pgp" cat "opensearch.pgp"| gpg --dearmor --batch --yes -o /usr/share/keyrings/opensearch-keyring echo "deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt stable main" | tee /etc/apt/sources.list.d/opensearch-2.x.list apt update && apt install opensearch -y