Skip to content

Instantly share code, notes, and snippets.

@Himura2la
Last active October 15, 2019 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Himura2la/a23e06ac4d66bbbea567dae9aa524e5d to your computer and use it in GitHub Desktop.
Save Himura2la/a23e06ac4d66bbbea567dae9aa524e5d to your computer and use it in GitHub Desktop.
Install PowerShell on Debian-based distro (based on official docs)
sudo apt-get update
sudo apt-get install -y wget gnupg apt-transport-https lsb-release
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-$(. /etc/os-release && echo $ID)-$(lsb_release -sc)-prod $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/microsoft.list
sudo apt-get update
sudo apt-get install -y powershell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment