Skip to content

Commit aac543c

Browse files
authored
Add updated steps for postgis PG13 (#833)
1 parent aef07ae commit aac543c

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
@@ -97,64 +97,172 @@ The following are commands for Red Hat Enterprise Linux 9 and derivatives. For R
9797
$ sudo dnf config-manager --set-enabled ol9_codeready_builder
9898
```
9999

100-
### For PostGIS
100+
### For PostGIS
101101

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

104-
For Red Hat Enterprise Linux 8 and derivatives, replace the operating system version in the commands accordingly.
104+
=== "RHEL 8"
105+
106+
Run the following commands:
107+
{.power-number}
108+
109+
1. Install DNF plugin utilities
110+
111+
```{.bash data-prompt="$"}
112+
$ sudo dnf install dnf-plugins-core
113+
```
114+
115+
2. Install the EPEL repository
116+
117+
```{.bash data-prompt="$"}
118+
$ sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
119+
```
120+
121+
3. Enable the CodeReady Builder repository to resolve dependency conflicts
122+
123+
```{.bash data-prompt="$"}
124+
$ sudo dnf config-manager --set-enabled codeready-builder-for-rhel-8-rhui-rpms
125+
```
126+
127+
4. Disable the default PostgreSQL module
128+
129+
```{.bash data-prompt="$"}
130+
$ sudo dnf module disable postgresql
131+
```
105132

106133
=== "RHEL 9"
107134

108135
Run the following commands:
109136
{.power-number}
110137

111-
1. Install `epel` repository
138+
1. Install DNF plugin utilities
112139

113140
```{.bash data-prompt="$"}
114-
$ sudo yum install epel-release
141+
$ sudo dnf install dnf-plugins-core
115142
```
116143

117-
2. Enable the codeready builder repository to resolve dependencies conflict.
144+
2. Install the EPEL repository
118145

119146
```{.bash data-prompt="$"}
120-
$ sudo dnf config-manager --set-enabled codeready-builder-for-rhel-9-x86_64-rpms
147+
$ sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
121148
```
149+
150+
3. Enable the CodeReady Builder repository to resolve dependency conflicts
122151

123-
=== "Rocky Linux 9"
152+
```{.bash data-prompt="$"}
153+
$ sudo dnf config-manager --set-enabled codeready-builder-for-rhel-9-rhui-rpms
154+
```
155+
156+
=== "Oracle Linux 8"
124157

125158
Run the following commands:
126159
{.power-number}
127160

128-
1. Install `epel` repository
161+
1. Install the EPEL repository
129162

130163
```{.bash data-prompt="$"}
131-
$ sudo yum install epel-release
164+
$ sudo dnf install -y epel-release
132165
```
133166

134-
2. Enable the codeready builder repository to resolve dependencies conflict.
167+
2. Install DNF plugin utilities
135168

136169
```{.bash data-prompt="$"}
137170
$ sudo dnf install dnf-plugins-core
138-
$ sudo dnf config-manager --set-enabled crb
171+
```
172+
173+
3. Enable the CodeReady Builder repository to resolve dependency conflicts
174+
175+
```{.bash data-prompt="$"}
176+
$ sudo dnf config-manager --set-enabled ol8_codeready_builder
177+
```
178+
179+
4. (Alternative) Install the latest EPEL release
180+
181+
```{.bash data-prompt="$"}
182+
$ sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
183+
```
184+
185+
5. Disable the default PostgreSQL module
186+
187+
```{.bash data-prompt="$"}
188+
$ sudo dnf module disable postgresql
139189
```
140190

141191
=== "Oracle Linux 9"
142192

143193
Run the following commands:
144194
{.power-number}
145195

146-
1. Install `epel` repository
196+
1. Install the EPEL repository
147197

148198
```{.bash data-prompt="$"}
149-
$ sudo yum install epel-release
199+
$ sudo dnf install -y epel-release
150200
```
151201

152-
2. Enable the codeready builder repository to resolve dependencies conflict.
202+
2. Install DNF plugin utilities
203+
204+
```{.bash data-prompt="$"}
205+
$ sudo dnf install dnf-plugins-core
206+
```
207+
208+
3. Enable the CodeReady Builder repository to resolve dependency conflicts
153209

154210
```{.bash data-prompt="$"}
155211
$ sudo dnf config-manager --set-enabled ol9_codeready_builder
156212
```
157213

214+
=== "Rocky Linux 8"
215+
216+
Run the following commands:
217+
{.power-number}
218+
219+
1. Install the EPEL release package
220+
221+
```{.bash data-prompt="$"}
222+
$ sudo dnf install -y epel-release
223+
```
224+
225+
2. Install DNF plugin utilities
226+
227+
```{.bash data-prompt="$"}
228+
$ sudo dnf install dnf-plugins-core
229+
```
230+
231+
3. Enable the PowerTools repository
232+
233+
```{.bash data-prompt="$"}
234+
$ sudo dnf config-manager --set-enabled powertools
235+
```
236+
237+
4. Disable the default PostgreSQL module
238+
239+
```{.bash data-prompt="$"}
240+
$ sudo dnf module disable postgresql
241+
```
242+
243+
=== "Rocky Linux 9"
244+
245+
Run the following commands:
246+
{.power-number}
247+
248+
1. Install the EPEL repository
249+
250+
```{.bash data-prompt="$"}
251+
$ sudo dnf install -y epel-release
252+
```
253+
254+
2. Install DNF plugin utilities
255+
256+
```{.bash data-prompt="$"}
257+
$ sudo dnf install dnf-plugins-core
258+
```
259+
260+
3. Enable the CodeReady Builder repository to resolve dependency conflicts
261+
262+
```{.bash data-prompt="$"}
263+
$ sudo dnf config-manager --set-enabled crb
264+
```
265+
158266
=== "RHEL UBI 9"
159267

160268
Run the following commands:

0 commit comments

Comments
 (0)