Sunday, November 27, 2016

Install PowerShell on Ubuntu 16.04

A game changer it could be :-)

PowerShell is an amazing admin magic tools that can do wonders if you know it. We know Microsoft know loves Linux and have openly accepted it. Releasing PowerShell for Linux and OSX shows the commitment towards the relation.

So here's what you have to do:

Install the pre-requisites for the PowerShell on Linux.



The PowerShell package is dependent on two other Debian packages: libunwind8 and libicu55. You can install them with apt-get:

sudo apt-get install libunwind8 libicu55

In case you see error while installing libicu55, you can download it manually and install it.


http://packages.ubuntu.com/en/xenial/amd64/libicu55/download



Since PowerShell is yet not available on the Ubuntu repository, you need to download it from the GITHUB

To simplify things for you, here's the link to download it directly :

wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb




Once you have downloaded the package, the next step to bring alive the PowerShell on Linux by installing the binaries

sudo dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb

Once installed, just type in POWERSHELL and do the magic...