Skip to content

Instantly share code, notes, and snippets.

@pkbullock
Created October 10, 2020 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkbullock/1c8341988962e356606264b1e3a4ce9a to your computer and use it in GitHub Desktop.
Save pkbullock/1c8341988962e356606264b1e3a4ce9a to your computer and use it in GitHub Desktop.
Setup PowerShell on Raspbian
###################################
# Prerequisites
# Update package lists
sudo apt-get update
# Install libunwind8 and libssl1.0
# Regex is used to ensure that we do not install libssl1.0-dev, as it is a variant that is not required
sudo apt-get install '^libssl1.0.[0-9]$' libunwind8 -y
###################################
# Download and extract PowerShell
# Grab the latest tar.gz
wget https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/powershell-7.0.3-linux-arm32.tar.gz
# Make folder to put powershell
mkdir ~/powershell
# Unpack the tar.gz file
tar -xvf ./powershell-7.0.3-linux-arm32.tar.gz -C ~/powershell
# Start PowerShell
~/powershell/pwsh
# Source: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7#raspbian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment