Data Networking Blog
Blog for Admins

Install .Net and Powershell Core on Centos


.Net and Powershell are now available for Linux as open source packages. This is a good move as i think this will make a lot of people really comfortable with using Linux.

Before we can install Powershell core we need the .Net core installed as Powershell is built on top of .Net

sudo yum install libunwind libicu
curl -sSL -o dotnet.tar.gz
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
sudo ln -s /opt/dotnet/dotnet /usr/local/bin

Get the latest RPM package from

Download it using Curl

curl -sSL -o powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm

Install the rpm package

yum install powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm

Now type Powershell and you should see the powershell prompt

Enter a command like Get-ChildItem and it should give you an output similar to what you see on Windows PowerShell

[root@localhost ~]# powershell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS /root> Get-ChildItem

Directory: /root

Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 19/08/16 9:54 am hwapp
d----- 15/07/16 3:12 pm scripts
------ 4/07/16 1:48 pm 1252 anaconda-ks.cfg
------ 19/08/16 9:51 am 51897444 dotnet.tar.gz
------ 19/08/16 9:57 am 40391065 powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm
------ 11/07/16 11:18 am 11880944 primer-dataset.json

PS /root>

August 19, 2016 Linux, PowerShell, Script, Windows Jd
Font Size
Decrease Size Default Size Increase Size
Select Skin
Select Underlay Background
Select Overlay Background
Scheme Switcher Toggle