Install PowerShell on Linux Mint

powershell on linux mint

It’s almost hard to believe, but Microsoft has made PowerShell open source and is now available for users to install Powershell on Linux and Mac OS X machines. In this quick post I’ll show how you can easily install PowerShell on Linux Mint 18.

How to Install PowerShell on Linux Mint 18

You can now easily install Powershell by simply adding the Microsoft repository and then using apt-get to install!

  1. First lets adding the Microsoft keys and repository by typing the following:
    curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
    curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
    

    linux powershell register repository

  2. Now we’ll need to update apt-get and then install Powershell by typing the following:
    sudo apt-get update
    sudo apt-get install powershell -y
    

    linux powershell apt-get update install

That’s it, PowerShell is now installed on Linux Mint 18.

Simply type: pwsh to start PowerShell!
powershell on linux

You’ll see there isn’t a ton available at the moment, but it’s a start nonetheless and you can bet it’s only going to grow as development continues. Be sure to check out the PowerShell GitHub page for much more information.

This Post Has One Comment

  1. Please update instructions to avoid error below when installing Powershell.

    The following packages have unmet dependencies.
    powershell : Depends: libicu55 but it is not installable
    E: Unable to correct problems, you have held broken packages.

    Corrected it by running this before hand.

    wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7ubuntu0.4_amd64.deb
    sudo apt install ./libicu55_55.1-7ubuntu0.4_amd64.deb
    source: https://askubuntu.com/questions/905018/install-powershell-in-ubuntu-17-04

Leave a Reply