Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Last active February 14, 2019 07:33
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save goyalmohit/0e58a42a7e2d7176adbfc1d8de2a388c to your computer and use it in GitHub Desktop.
Save goyalmohit/0e58a42a7e2d7176adbfc1d8de2a388c to your computer and use it in GitHub Desktop.
Install PowerShell Core on Ubuntu 16.04
# Import the public repository GPG keys
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
# Register the Microsoft Ubuntu repository
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
# Update apt-get
sudo apt-get update
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
powershell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment