Install OpenSource PowerShell on CentOS 7

Recently, Microsoft has announced PowerShell for Linux and OpenSource. We can use PowerShell abilities on other OSes such as enterprise Linux, Mac OSX and Ubuntu LTS (14.04 and 16.04).

I want to explain installation process for CentOS 7 in this post.

Installation PowerShell

At first step, we should download the proper package for your OS, PowerShell package is available for the below OSes:

  1. Ubuntu 14.04
  2. Ubuntu 16.04
  3. CentOS 7 or RHEL 7
  4. Mac OS

Download it form the release page.

OpenSource PowerShell Packages

After download, we can install RPM package on our Linux machine:

rpm -i powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm

Done!

Now, type “powershell” in terminal and you will be redirected to PowerShell console and you be able to run Powershell commands:

PowerShell Linux ExampleAlso there is no case sensitivity in this console! Unlike Linux commands!

You can download other packages and install the packages on other supported Operating System.

Please consider that the version is Alpha version and this is not final or stable version and there is some bugs and limitation.

But I’m sure that new features will be added to the future versions.

Davoud Teimouri

Professional blogger, vExpert 2015/2016/2017/2018/2019/2020/2021/2022/2023, vExpert NSX, vExpert PRO, vExpert Security, vExpert EUC, VCA, MCITP. This blog is started with simple posts and now, it has large following readers.

Leave a Reply

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