Skip to content

Instantly share code, notes, and snippets.

@PixelRobots
Created February 10, 2018 19:33
Show Gist options
  • Save PixelRobots/bcef84d59ccd78f47e91642a3792368f to your computer and use it in GitHub Desktop.
Save PixelRobots/bcef84d59ccd78f47e91642a3792368f to your computer and use it in GitHub Desktop.
# Check Version
lsb_release -a
# 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 the list of products
sudo apt-get update
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
pwsh
# Uninstall PowerShell
sudo apt-get remove powershell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment