Last active
December 28, 2019 11:10
-
-
Save Erisa/b1e555c7b59f793259899229c708914e to your computer and use it in GitHub Desktop.
Install Powershell on Ubuntu 18.04 x64
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
# https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#ubuntu-1804 | |
# Download the Microsoft repository GPG keys | |
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb | |
# Register the Microsoft repository GPG keys | |
sudo dpkg -i packages-microsoft-prod.deb | |
rm -v packages-microsoft-prod.deb | |
# Update the list of products | |
sudo apt update | |
sudo apt -y install software-properties-common | |
# Enable the "universe" repositories | |
sudo add-apt-repository universe | |
# Install PowerShell | |
sudo apt install -y powershell | |
# Start PowerShell | |
pwsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment