Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,31 @@ You have several options for installing the {{es}} Debian package:

2. Save the repository definition to `/etc/apt/sources.list.d/elastic-9.x.list`:

```sh
```sh subs=true
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/9.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-9.x.list
```


3. Install the {{es}} Debian package:

::::{tab-set}
:::{tab-item} Latest
To install the latest version of {{es}} {{version.stack}} package, enter:

```sh
sudo apt-get update && sudo apt-get install elasticsearch
```
:::
:::{tab-item} Specific version
To install a specific version of the {{es}} package, replace `<SPECIFIC.VERSION.NUMBER>` with the {{es}} version number you want. For example, you can replace `<SPECIFIC.VERSION.NUMBER>` with {{version.stack.base}}.

```sh
sudo apt-get update && sudo apt-get install elasticsearch=<SPECIFIC.VERSION.NUMBER>
```

:::
::::


:::{note}
These instructions do not use `add-apt-repository` for several reasons:
Expand All @@ -87,7 +103,7 @@ These instructions do not use `add-apt-repository` for several reasons:
:::{warning}
If two entries exist for the same {{es}} repository, you will see an error like this during `apt-get update`:

```text
```text subs=true
Duplicate sources.list entry https://artifacts.elastic.co/packages/9.x/apt/ ...
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0
type=rpm-md
```


:::

:::{tab-item} openSUSE distributions
Expand All @@ -88,6 +90,7 @@ enabled=0
autorefresh=1
type=rpm-md
```

:::
::::

Expand All @@ -97,12 +100,18 @@ type=rpm-md
:group:linux-distros
:::{tab-item} RedHat distributions
:sync: rhel
If you use Fedora, or Red Hat Enterprise Linux 8 and later, enter the following command:
If you use Fedora, or Red Hat Enterprise Linux 8 and later, enter the following command to install the latest version of {{es}} {{version.stack}} package:

```sh
sudo dnf install --enablerepo=elasticsearch elasticsearch
```

If you want to install a specific {{es}} version, replace the `<SPECIFIC.VERSION.NUMBER>` with the {{es}} version number you want. For example, you can replace `<SPECIFIC.VERSION.NUMBER>` with {{version.stack.base}}.

```sh
sudo dnf install elasticsearch-<SPECIFIC.VERSION.NUMBER>
```

If you use CentOS, or Red Hat Enterprise Linux 7 and earlier, enter the following command:
```sh
sudo yum install --enablerepo=elasticsearch elasticsearch
Expand Down
Loading