Created
August 6, 2022 14:43
-
-
Save powareverb/e960d846ec17e637331a152499fe25d4 to your computer and use it in GitHub Desktop.
pwsh-rpi-ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Update the list of packages | |
| sudo apt-get update | |
| # Install pre-requisite packages. | |
| sudo apt-get install -y wget apt-transport-https software-properties-common | |
| # Download the Microsoft repository GPG keys | |
| wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb" | |
| # Register the Microsoft repository GPG keys | |
| sudo dpkg -i packages-microsoft-prod.deb | |
| # Update the list of packages after we added packages.microsoft.com | |
| sudo apt-get update | |
| # Install PowerShell | |
| sudo apt-get install -y powershell | |
| # Start PowerShell | |
| pwsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment