Created
January 26, 2020 16:50
-
-
Save rakibulinux/1dcf78e14991cba467d2b5a579672370 to your computer and use it in GitHub Desktop.
How to Install PowerShell on Ubuntu 18.04
This file contains 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
# 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 | |
# Update the list of products | |
sudo apt-get update | |
# Enable the "universe" repositories | |
sudo add-apt-repository universe | |
# 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