Skip to content

Commit 9ee052d

Browse files
authored
Add updated steps for postgis PG14 (#834)
1 parent 768f447 commit 9ee052d

File tree

1 file changed

+123
-15
lines changed

1 file changed

+123
-15
lines changed

docs/yum.md

Lines changed: 123 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -109,64 +109,172 @@ The following are commands for Red Hat Enterprise Linux 9 and derivatives. For R
109109
$ sudo dnf config-manager --set-enabled ol9_codeready_builder
110110
```
111111

112-
### For PostGIS
112+
### For PostGIS
113113

114-
The following commands provide instructions how to enable required repositories and modules on Red Hat Enterprise Linux 9 and derivatives.
114+
For Red Hat Enterprise Linux 8 and derivatives, replace the operating system version in the following commands accordingly.
115115

116-
For Red Hat Enterprise Linux 8 and derivatives, replace the operating system version in the commands accordingly.
116+
=== "RHEL 8"
117+
118+
Run the following commands:
119+
{.power-number}
120+
121+
1. Install DNF plugin utilities
122+
123+
```{.bash data-prompt="$"}
124+
$ sudo dnf install dnf-plugins-core
125+
```
126+
127+
2. Install the EPEL repository
128+
129+
```{.bash data-prompt="$"}
130+
$ sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
131+
```
132+
133+
3. Enable the CodeReady Builder repository to resolve dependency conflicts
134+
135+
```{.bash data-prompt="$"}
136+
$ sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms
137+
```
138+
139+
4. Disable the default PostgreSQL module
140+
141+
```{.bash data-prompt="$"}
142+
$ sudo dnf module disable postgresql
143+
```
117144

118145
=== "RHEL 9"
119146

120147
Run the following commands:
121148
{.power-number}
122149

123-
1. Install `epel` repository
150+
1. Install DNF plugin utilities
124151

125152
```{.bash data-prompt="$"}
126-
$ sudo yum install epel-release
153+
$ sudo dnf install dnf-plugins-core
127154
```
128155

129-
2. Enable the codeready builder repository to resolve dependencies conflict.
156+
2. Install the EPEL repository
130157

131158
```{.bash data-prompt="$"}
132-
$ sudo dnf config-manager --set-enabled codeready-builder-for-rhel-9-x86_64-rpms
159+
$ sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
133160
```
161+
162+
3. Enable the CodeReady Builder repository to resolve dependency conflicts
134163

135-
=== "Rocky Linux 9"
164+
```{.bash data-prompt="$"}
165+
$ sudo dnf config-manager --set-enabled codeready-builder-for-rhel-9-rhui-rpms
166+
```
167+
168+
=== "Oracle Linux 8"
136169

137170
Run the following commands:
138171
{.power-number}
139172

140-
1. Install `epel` repository
173+
1. Install the EPEL repository
141174

142175
```{.bash data-prompt="$"}
143-
$ sudo yum install epel-release
176+
$ sudo dnf install -y epel-release
144177
```
145178

146-
2. Enable the codeready builder repository to resolve dependencies conflict.
179+
2. Install DNF plugin utilities
147180

148181
```{.bash data-prompt="$"}
149182
$ sudo dnf install dnf-plugins-core
150-
$ sudo dnf config-manager --set-enabled crb
183+
```
184+
185+
3. Enable the CodeReady Builder repository to resolve dependency conflicts
186+
187+
```{.bash data-prompt="$"}
188+
$ sudo dnf config-manager --set-enabled ol8_codeready_builder
189+
```
190+
191+
4. (Alternative) Install the latest EPEL release
192+
193+
```{.bash data-prompt="$"}
194+
$ sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
195+
```
196+
197+
5. Disable the default PostgreSQL module
198+
199+
```{.bash data-prompt="$"}
200+
$ sudo dnf module disable postgresql
151201
```
152202

153203
=== "Oracle Linux 9"
154204

155205
Run the following commands:
156206
{.power-number}
157207

158-
1. Install `epel` repository
208+
1. Install the EPEL repository
159209

160210
```{.bash data-prompt="$"}
161-
$ sudo yum install epel-release
211+
$ sudo dnf install -y epel-release
162212
```
163213

164-
2. Enable the codeready builder repository to resolve dependencies conflict.
214+
2. Install DNF plugin utilities
215+
216+
```{.bash data-prompt="$"}
217+
$ sudo dnf install dnf-plugins-core
218+
```
219+
220+
3. Enable the CodeReady Builder repository to resolve dependency conflicts
165221

166222
```{.bash data-prompt="$"}
167223
$ sudo dnf config-manager --set-enabled ol9_codeready_builder
168224
```
169225

226+
=== "Rocky Linux 8"
227+
228+
Run the following commands:
229+
{.power-number}
230+
231+
1. Install the EPEL release package
232+
233+
```{.bash data-prompt="$"}
234+
$ sudo dnf install -y epel-release
235+
```
236+
237+
2. Install DNF plugin utilities
238+
239+
```{.bash data-prompt="$"}
240+
$ sudo dnf install dnf-plugins-core
241+
```
242+
243+
3. Enable the PowerTools repository
244+
245+
```{.bash data-prompt="$"}
246+
$ sudo dnf config-manager --set-enabled powertools
247+
```
248+
249+
4. Disable the default PostgreSQL module
250+
251+
```{.bash data-prompt="$"}
252+
$ sudo dnf module disable postgresql
253+
```
254+
255+
=== "Rocky Linux 9"
256+
257+
Run the following commands:
258+
{.power-number}
259+
260+
1. Install the EPEL repository
261+
262+
```{.bash data-prompt="$"}
263+
$ sudo dnf install -y epel-release
264+
```
265+
266+
2. Install DNF plugin utilities
267+
268+
```{.bash data-prompt="$"}
269+
$ sudo dnf install dnf-plugins-core
270+
```
271+
272+
3. Enable the CodeReady Builder repository to resolve dependency conflicts
273+
274+
```{.bash data-prompt="$"}
275+
$ sudo dnf config-manager --set-enabled crb
276+
```
277+
170278
=== "RHEL UBI 9"
171279

172280
Run the following commands:

0 commit comments

Comments
 (0)