@@ -247,6 +247,105 @@ sudo apt-get install -f
247
247
sudo apt-get remove powershell
248
248
```
249
249
250
+ ## Debian 10
251
+
252
+ > [ !NOTE]
253
+ > Debian 10 is only supported in PowerShell 7.0 and newer.
254
+
255
+ ### Installation via Direct Download - Debian 10
256
+
257
+ Download the tar.gz package ` powershell_7.0.0-preview-7-linux-x64.tar.gz ` from the [ releases] [ ] page onto
258
+ the Debian machine.
259
+
260
+ Then, in the terminal, execute the following commands:
261
+
262
+ ``` sh
263
+ sudo apt-get update
264
+ # install the requirements
265
+ sudo apt-get install -y \
266
+ less \
267
+ locales \
268
+ ca-certificates \
269
+ libicu63 \
270
+ libssl1.1 \
271
+ libc6 \
272
+ libgcc1 \
273
+ libgssapi-krb5-2 \
274
+ liblttng-ust0 \
275
+ libstdc++6 \
276
+ zlib1g \
277
+ curl
278
+
279
+ # Download the powershell '.tar.gz' archive
280
+ curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.0.0-preview.4/powershell-7.0.0-preview.4-linux-x64.tar.gz -o /tmp/powershell.tar.gz
281
+
282
+ # Create the target folder where powershell will be placed
283
+ sudo mkdir -p /opt/microsoft/powershell/7-preview
284
+
285
+ # Expand powershell to the target folder
286
+ sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7-preview
287
+
288
+ # Set execute permissions
289
+ sudo chmod +x /opt/microsoft/powershell/7-preview/pwsh
290
+
291
+ # Create the symbolic link that points to pwsh
292
+ sudo ln -s /opt/microsoft/powershell/7-preview/pwsh /usr/bin/pwsh-preview
293
+
294
+ # Start PowerShell
295
+ pwsh-preview
296
+ ```
297
+
298
+ ## Alpine 3.9 and 3.10
299
+
300
+ > [ !NOTE]
301
+ > Alpine 3.9 and 3.10 are only supported in PowerShell 7.0 and newer.
302
+
303
+ ### Installation via Direct Download - Alpine 3.9 and 3.10
304
+
305
+ Download the tar.gz package ` powershell_7.0.0-preview-7-linux-x64.tar.gz ` from the [ releases] [ ] page onto
306
+ the Alpine machine.
307
+
308
+ Then, in the terminal, execute the following commands:
309
+
310
+ ``` sh
311
+ # install the requirements
312
+ sudo apk add --no-cache \
313
+ ca-certificates \
314
+ less \
315
+ ncurses-terminfo-base \
316
+ krb5-libs \
317
+ libgcc \
318
+ libintl \
319
+ libssl1.1 \
320
+ libstdc++ \
321
+ tzdata \
322
+ userspace-rcu \
323
+ zlib \
324
+ icu-libs \
325
+ curl
326
+
327
+ sudo apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache \
328
+ lttng-ust
329
+
330
+ # Download the powershell '.tar.gz' archive
331
+ curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.0.0-preview.4/powershell-7.0.0-preview.4-linux-alpine-x64.tar.gz -o /tmp/powershell.tar.gz
332
+
333
+ # Create the target folder where powershell will be placed
334
+ sudo mkdir -p /opt/microsoft/powershell/7-preview
335
+
336
+ # Expand powershell to the target folder
337
+ sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7-preview
338
+
339
+ # Set execute permissions
340
+ sudo chmod +x /opt/microsoft/powershell/7-preview/pwsh
341
+
342
+ # Create the symbolic link that points to pwsh
343
+ sudo ln -s /opt/microsoft/powershell/7-preview/pwsh /usr/bin/pwsh-preview
344
+
345
+ # Start PowerShell
346
+ pwsh-preview
347
+ ```
348
+
250
349
## CentOS 7
251
350
252
351
> [ !NOTE]
@@ -403,7 +502,10 @@ rm -rf /usr/bin/pwsh /opt/microsoft/powershell
403
502
> [ !NOTE]
404
503
> Fedora 28 is only supported in PowerShell Core 6.1 and newer.
405
504
406
- ### Installation via Package Repository (preferred) - Fedora 27, Fedora 28
505
+ > [ !NOTE]
506
+ > Fedora 29 and 30 are only supported in PowerShell 7.0 and newer.
507
+
508
+ ### Installation via Package Repository (preferred) - Fedora 28, 29, and 30
407
509
408
510
PowerShell Core for Linux is published to official Microsoft repositories for easy installation and
409
511
updates.
@@ -428,7 +530,7 @@ sudo dnf install -y powershell
428
530
pwsh
429
531
```
430
532
431
- ### Installation via Direct Download - Fedora 27, Fedora 28
533
+ ### Installation via Direct Download - Fedora 28, 29, and 30
432
534
433
535
Download the RPM package ` powershell-6.2.0-1.rhel.7.x86_64.rpm ` from the [ releases] [ ] page onto the
434
536
Fedora machine.
@@ -447,7 +549,7 @@ sudo dnf install compat-openssl10
447
549
sudo dnf install https://github.com/PowerShell/PowerShell/releases/download/v6.2.0/powershell-6.2.0-1.rhel.7.x86_64.rpm
448
550
```
449
551
450
- ### Uninstallation - Fedora 27, Fedora 28
552
+ ### Uninstallation - Fedora 28, 29, and 30
451
553
452
554
``` sh
453
555
sudo dnf remove powershell
0 commit comments