Powershell Tip #113: How to install PowerShell on Linux (Ubuntu 16.04)

By | August 22, 2016

Tip: You can install PowerShell on Linux (Ubuntu 16.04).

In this example, I will install PowerShell on a virtual machine Ubuntu using VMware Workstation 10.

1 – Download the ISO : http://releases.ubuntu.com/16.04/ubuntu-16.04.1-desktop-amd64.iso

2 – Create a new virtual machine, import this ISO, start the VM and wait until the install is completed.

install-powershell-on-linux-ubuntu-version-16-04-screenshot-1

Note 1: I changed the screen resolution (800×600) to 1280×768 to increase the size. To do that, go to System Settings (left side bar) > Displays > Resolution

Note 2: To change the keyboard layout, search for “Text Entry” (in my case I added the French Switzerland).

install-powershell-on-linux-ubuntu-version-16-04-screenshot-6

install-powershell-on-linux-ubuntu-version-16-04-screenshot-7

3 – Launch terminal

install-powershell-on-linux-ubuntu-version-16-04-screenshot-2

4 – Install these packages :  sudo apt-get install libunwind8 libicu55

install-powershell-on-linux-ubuntu-version-16-04-screenshot-3

Note: To check the ubuntu version : lsb_release -a

5 – Download the package : https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb

install-powershell-on-linux-ubuntu-version-16-04-screenshot-4

6 – Install the package PowerShell : sudo dpkg -i powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb

install-powershell-on-linux-ubuntu-version-16-04-screenshot-5

7 – Type powershell

install-powershell-on-linux-ubuntu-version-16-04-Screenshot-num-1

install-powershell-on-linux-ubuntu-version-16-04-Screenshot-num-2


previous-buttonnext-button

One thought on “Powershell Tip #113: How to install PowerShell on Linux (Ubuntu 16.04)

  1. Pingback: Powershell Tip #114: Rename a folder using Move method | Powershell Guru

Leave a Reply

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