Install 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!
- 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
- 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
That’s it, PowerShell is now installed on Linux Mint 18.
Simply type: pwsh to start PowerShell!
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.
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.
sudo apt install ./libicu55_55.1-7ubuntu0.4_amd64.deb