Repository navigation
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
Content source URL
Author
Platform Id
3c5f54f7-81d6-67d1-1830-7a599fc9052e
Document Id
da6c7c79-75ee-f19a-09b5-59dc21139242
Activity