How to install PowerShell on Ubuntu Linux

Last month there was some big news from the PowerShell team. The first big announcement was that PowerShell is as from now open source under the MIT license and can be retrieved from GitHub. Secondly they also announced that PowerShell can now be installed on several Linux distributions such as Ubuntu and CentOS. Mac OS X is also supported.

In this tutorial we will show how to install PowerShell on Ubuntu. For the purpose of this tutorial we will be using Ubuntu 16.04.1 LTS.

First we go to the PowerShell Github repository and locate the correct package. In our case we choose powershell_6.0.0-alpha.10-1ubuntu1.16.04.1_amd64.deb.

Next we open a terminal, change our location to /Downloads and retrieve the file with wget.

cd Downloads


Next we install the package with the dpkg package manager.

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


In case you get dependency errors during the installation, you can resolve that by running apt-get install with the fix parameter. In our case however all dependencies were already available.

sudo apt-get install -f

That’s it! Now PowerShell is installed on your Ubuntu and you can launch it by running the command powershell. Use the Get-Command cmdlet as you would on Windows to see which cmdlets are already available.


Leave a Reply

Your email address will not be published. Required fields are marked *