]> us-delaporte.pagekite.me Git - dotfiles.git/blob - install/pi_powershell7.sh
Consistent naming.
[dotfiles.git] / install / pi_powershell7.sh
1
2 ## https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1#raspbian
3
4
5 ###################################
6 # Prerequisites
7
8 # Update package lists
9 sudo apt-get update
10
11 # Install libunwind8 and libssl1.0
12 # Regex is used to ensure that we do not install libssl1.0-dev, as it is a variant that is not required
13 sudo apt-get install '^libssl1.0.[0-9]$' libunwind8 -y
14
15 ###################################
16 # Download and extract PowerShell
17
18 # Grab the latest tar.gz
19 wget https://github.com/PowerShell/PowerShell/releases/download/v7.1.2/powershell-7.1.2-linux-arm32.tar.gz
20
21 # Make folder to put powershell
22 mkdir /etc/powershell
23
24 # Unpack the tar.gz file
25 tar -xvf ./powershell-7.1.2-linux-arm32.tar.gz -C /etc/powershell