You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The author of #1745 is correct, `autorefresh = 1` is not a config option
that's available in dnf or yum. However, it is a valid and often used
option in
[zypper](https://doc.opensuse.org/documentation/tumbleweed/zypper/)
(openSUSE distros).
I've added tabs to account for this discrepancy (when creating the repo
definition) and using tabs actually fixes the next step as well, which
is trying to account for multiple Linux distros commands to install
Elasticsearch from an RPM repo.
The RHEL-based commands for installing will also differ based on the
version or RHEL you're using, so that tab accounts for RHEL 8 + (when
dnf was introduced) and RHEL 7 & earlier for yum.
I've also updated the names of the distros for accuracy:
* Red Hat Enterprise Linux (RHEL)
* openSUSE
* SUSE Linux Enterprise Server (SLES)
* Oracle Linux (was renamed from Oracle Enterprise)
* CentOS
Fixes#1745
Copy file name to clipboardExpand all lines: deploy-manage/deploy/self-managed/install-elasticsearch-with-rpm.md
+50-10Lines changed: 50 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ sub:
17
17
18
18
# Install {{es}} with RPM [rpm]
19
19
20
-
The RPM package for {{es}} can be [downloaded from our website](#install-rpm) or from our [RPM repository](#rpm-repo). It can be used to install {{es}} on any RPM-based system such as OpenSuSE, SLES, Centos, Red Hat, and Oracle Enterprise.
20
+
The RPM package for {{es}} can be [downloaded from our website](#install-rpm) or from our [RPM repository](#rpm-repo). It can be used to install {{es}} on any RPM-based system such as openSUSE, SUSE Linux Enterprise Server (SLES), CentOS, Red Hat Enterprise Linux (RHEL), and Oracle Linux.
21
21
22
22
::::{note}
23
23
RPM install is not supported on distributions with old versions of RPM, such as SLES 11 and CentOS 5. Refer to [Install {{es}} from archive on Linux or MacOS](install-elasticsearch-from-archive-on-linux-macos.md) instead.
You have several options for installing the {{es}} RPM package:
51
+
You have two options for installing the {{es}} RPM package:
52
52
53
53
*[From the RPM repository](#rpm-repo)
54
54
*[Manually](#install-rpm)
55
55
56
56
### Install from the RPM repository [rpm-repo]
57
57
58
-
Create a file called `elasticsearch.repo` in the `/etc/yum.repos.d/` directory for RedHat based distributions, or in the `/etc/zypp/repos.d/` directory for OpenSuSE based distributions, containing:
58
+
1. Define a repository for {{es}}.
59
+
60
+
::::{tab-set}
61
+
:group:linux-distros
62
+
:::{tab-item} RedHat distributions
63
+
:sync: rhel
64
+
For RedHat based distributions, create a file called `elasticsearch.repo` in the `/etc/yum.repos.d/` directory and include the following configuration:
For openSUSE based distributions, create a file called `elasticsearch.repo` in the `/etc/zypp/repos.d/` directory and include the following configuration:
59
80
60
81
```ini subs=true
61
82
[elasticsearch]
@@ -67,19 +88,38 @@ enabled=0
67
88
autorefresh=1
68
89
type=rpm-md
69
90
```
70
-
And your repository is ready for use. You can now install {{es}} with one of the following commands:
91
+
:::
92
+
::::
93
+
94
+
2. Install {{es}} from the repository you defined earlier.
95
+
96
+
::::{tab-set}
97
+
:group:linux-distros
98
+
:::{tab-item} RedHat distributions
99
+
:sync: rhel
100
+
If you use Fedora, or Red Hat Enterprise Linux 8 and later, enter the following command:
0 commit comments