Install PowerShell on Linux

PowerShell screenshot

We already announced that PowerShell, Microsoft's "powerful" tool to extend a little more the capabilities of the terminal that comes by default with Windows NT has been released and is already open source and they have also created a version for Linux. Honestly, I prefer Bash or any other shell before PowerShell, because they seem better and more practical when using them.

However, some developers or professionals who need to work with PowerShell may appreciate that it is also available for Linux, and of course for all those who think otherwise than me, and believe that PS is a better alternative to the existing ones in the Unix world ... Therefore, in this article we are going to explain how you can install one of the latest versions of this Microsoft tool on our distro.

Well, the efforts of Satya Nadella and the renewed Microsoft to leave behind the era of that very closed Microsoft have made some mistakes, and this is one of them. If you want to try it yourself, you can do it (depending on your distribution) for example like this to Ubuntu:

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
sudo apt-get update
sudo apt-get install -y powershell

While for CentOS it would be something like:

curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/microsoft.repo
yum install -y powershell

You already know that depending on your distro or version, the procedures may change. Finally, for put it into operation, just type:

powershell

If everything went well, the prompt from PowerShell, which will be something like PS />


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

2 comments, leave yours

Leave a Comment

Your email address will not be published.

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   one that happened said

    Unfortunately those who are forced to install powershell on a wildebeest xD

  2.   pijazo said

    who can in their right mind install m $ powershell on linux having bash or korn shell?
    hahaha

bool (true)