@@ -48,12 +48,12 @@ ifeval::["{release-state}"=="released"]
48
48
49
49
["source","sh",subs="attributes,callouts"]
50
50
--------------------------------------------------
51
- [elasticsearch-{major-version} ]
51
+ [elasticsearch]
52
52
name=Elasticsearch repository for {major-version} packages
53
53
baseurl=https://artifacts.elastic.co/packages/{major-version}/yum
54
54
gpgcheck=1
55
55
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
56
- enabled=1
56
+ enabled=0
57
57
autorefresh=1
58
58
type=rpm-md
59
59
--------------------------------------------------
@@ -64,12 +64,12 @@ ifeval::["{release-state}"=="prerelease"]
64
64
65
65
["source","sh",subs="attributes,callouts"]
66
66
--------------------------------------------------
67
- [elasticsearch-{major-version} ]
67
+ [elasticsearch]
68
68
name=Elasticsearch repository for {major-version} packages
69
69
baseurl=https://artifacts.elastic.co/packages/{major-version}-prerelease/yum
70
70
gpgcheck=1
71
71
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
72
- enabled=1
72
+ enabled=0
73
73
autorefresh=1
74
74
type=rpm-md
75
75
--------------------------------------------------
@@ -80,14 +80,23 @@ And your repository is ready for use. You can now install Elasticsearch with one
80
80
81
81
[source,sh]
82
82
--------------------------------------------------
83
- sudo yum install elasticsearch <1>
84
- sudo dnf install elasticsearch <2>
85
- sudo zypper install elasticsearch <3>
83
+ sudo yum install --enablerepo=elasticsearch elasticsearch <1>
84
+ sudo dnf install --enablerepo=elasticsearch elasticsearch <2>
85
+ sudo zypper modifyrepo --enable elasticsearch && \
86
+ sudo zypper install elasticsearch; \
87
+ sudo zypper modifyrepo --disable elasticsearch <3>
86
88
--------------------------------------------------
87
89
<1> Use `yum` on CentOS and older Red Hat based distributions.
88
90
<2> Use `dnf` on Fedora and other newer Red Hat distributions.
89
91
<3> Use `zypper` on OpenSUSE based distributions
90
92
93
+ [NOTE]
94
+ ==================================================
95
+
96
+ The configured repository is disabled by default. This eliminates the possibility of accidentally
97
+ upgrading `elasticsearch` when upgrading the rest of the system. Each install or upgrade command
98
+ must explicitly enable the repository as indicated in the sample commands above.
99
+
91
100
endif::[]
92
101
93
102
ifeval::["{release-state}"!="unreleased"]
0 commit comments