Skip to content

Instantly share code, notes, and snippets.

@ishu3101
Last active June 12, 2019 10:49
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishu3101/92d43aac6f1bcc6e3e6b072961e7d6d4 to your computer and use it in GitHub Desktop.
Save ishu3101/92d43aac6f1bcc6e3e6b072961e7d6d4 to your computer and use it in GitHub Desktop.
Install PowerShell on Ubuntu 14.04
# install Powershell on Ubuntu 14.04
curl -SL https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.2/powershell_6.0.0-beta.2-1ubuntu1.14.04.1_amd64.deb -o powershell_6.0.0-beta.2-1ubuntu1.14.04.1_amd64.deb
sudo apt-get install libunwind8 libicu52
sudo dpkg -i powershell_6.0.0-beta.2-1ubuntu1.14.04.1_amd64.deb
wget -O - https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
echo 'deb https://packages.microsoft.com/ubuntu/14.04/prod trusty main' | sudo tee /etc/apt/sources.list.d/powershell.list
sudo apt-get update -qq
sudo apt-get install powershell -y
powershell -noprofile -c '"Congratulations! PowerShell is installed at $PSHOME"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment