Install Powershell on Centos 7
Powershell has been open-source for a while, and it has been briefly introduced on technet's blog.
PowerShell on Linux and Open Source! | Windows PowerShell Bloghttps: // blogs.msdn.microsoft.com/powershell/2016/08/18/powershell-on-linux-and-open-source-2/
The above link contains a wide range of open source powershell resources for your learning and reference.
The following describes how to install the powershell tool on centos 7.
The rpm installation package for powershell in centos 7 is:
Https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm
Download the installation package to centos 7 and run the command to install it. This is especially simple.
After the installation is complete, run get-command to check the cmdlets currently supported by powershell on Linux.
Then we can test the command execution, such as the write-host command. The user experience is exactly the same as that of the Windows version.