Tuesday, June 12, 2018

Install and update PowerShell Core on Centos 7

Documentation: https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux?view=powershell-6#centos-7

curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo



sudo yum install -y powershell



Check ps version and default modules

 List All Configured Repositories
yum repolist (-v)




pwsh to start powershell
$psversiontable



Install GNOME desktop on Centos7
yum -y groups install "GNOME Desktop"
startx 


Update powershell core


sudo yum update powershell


$PSVersionTable