Install PowerShell on Ubuntu Server 16.04


So it turns out the rumors were true: Microsoft really did open source PowerShell. Their GitHub page even includes installable packages for Ubuntu 16.04 (& 14.04), CentOS 7, and OS X 10.11. If you’re like me and are itching to play around with it in a Linux environment, I went ahead and wrote some quick instructions to get this going in Ubuntu Server 16.04.

Keep in mind that this is an alpha release and it’s very much in its infancy, so there’s not a whole lot you can do with it now. A lot of the power in PowerShell comes from the modules you can load into it (Active Directory, Exchange, PowerCLI (VMWare), etc.) and it doesn’t seem like any of them can be imported yet. But all in all, this is a great move from Microsoft and I’m excited to see what comes out of this.

Install PowerShell in Ubuntu Server 16.04

1. Assuming you’ve got a fresh install of Ubuntu 16.04, let’s start with the usual: update and upgrade.

sudo apt-get update -y
sudo apt-get upgrade –y

2. We need to make sure we have the following dependencies installed.

sudo apt-get install -y libunwind8 libicu55

3. Now, let’s download the Debian package specifically for Ubuntu 16.04 and make it writable.

chmod +x powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb

4. Let’s install PowerShell!

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

5. After a bit, PowerShell will successfully install. To launch it, simply time powershell and you should be in your PowerShell environment! You screen should look like mine below.




For a list of available commands, type Get-Command. For all modules that are available right now, type Get-Module -ListAvailable.

Get-Module -ListAvailable


This slideshow requires JavaScript.

Like I said, this is still pretty bare but a great first step from Microsoft. I’m excited to see how this will eventually benefit us that run mixed-environments. Have fun!

Install PowerShell on Ubuntu Server 16.04