Skip to content

ola #13395

Open
Open

Description

Type of issue

Typo

Feedback

#!/bin/bash

install the requirements

sudo apk add --no-cache
ca-certificates
less
ncurses-terminfo-base
krb5-libs
libgcc
libintl
libssl3
libstdc++
tzdata
userspace-rcu
zlib
icu-libs
curl

apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache
lttng-ust
openssh-client \

Download the powershell '.tar.gz' archive

curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.6.6/powershell-7.6.6-linux-musl-x64.tar.gz -o /tmp/powershell.tar.gz

Create the target folder where powershell will be placed

sudo mkdir -p /opt/microsoft/powershell/7

Expand powershell to the target folder

sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7

Set execute permissions

sudo chmod +x /opt/microsoft/powershell/7/pwsh

Create the symbolic link that points to pwsh

sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh

Start PowerShell

pwsh

Page URL

https://learn.microsoft.com/en-us/powershell/scripting/install/install-alpine?view=powershell-7.6

Content source URL

https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/docs-conceptual/install/install-alpine.md

Author

Sean Wheeler (@sdwheeler)

Platform Id

3c5f54f7-81d6-67d1-1830-7a599fc9052e

Document Id

da6c7c79-75ee-f19a-09b5-59dc21139242

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions