Skip to content

Instantly share code, notes, and snippets.

@Erisa
Last active December 28, 2019 11:10
Show Gist options
  • Save Erisa/b1e555c7b59f793259899229c708914e to your computer and use it in GitHub Desktop.
Save Erisa/b1e555c7b59f793259899229c708914e to your computer and use it in GitHub Desktop.
Install Powershell on Ubuntu 18.04 x64
# 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