Skip to content

Instantly share code, notes, and snippets.

@mcx808
Created May 19, 2025 12:54
Show Gist options
  • Save mcx808/c8b44c631d90cde0ef0ef3227b892154 to your computer and use it in GitHub Desktop.
Save mcx808/c8b44c631d90cde0ef0ef3227b892154 to your computer and use it in GitHub Desktop.
# Install dependencies
sudo apt-get install jq libssl1.1 libunwind8 -y
# Grab the latest tar.gz
bits=$(getconf LONG_BIT)
release=$(curl -sL https://api.github.com/repos/PowerShell/PowerShell/releases/latest)
package=$(echo $release | jq -r ".assets[].browser_download_url" | grep "linux-arm${bits}.tar.gz")
wget $package
# Make folder to put powershell
mkdir ~/powershell
# Unpack the tar.gz file
tar -xvf "./${package##*/}" -C ~/powershell
# Make executable and symlink
sudo chmod +x ~/powershell/pwsh
sudo ln -s ~/powershell/pwsh /usr/bin/pwsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment