centos上安装powershell

以前玩powershell都是在win上,看头条的时候,看到有一篇文章写说微软的powershell在github开源了,linux和macos系统都能装,所以在linux centos虚拟机上安装试着玩一下。

github上的官方链接https://github.com/PowerShell/PowerShell

1、在centos下下载powershell的安装包

wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm
#或者:
wget https://hweast.blob.core.chinacloudapi.cn/soft/powershell-6.0.0_alpha.9-1.el7.centos.x86_64.rpm

2、安装依赖

yum install -y libunwind libicu

3、安装powershell

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

4、使用

直接命令行输入powershell即可进入powershell环境,完成。

猜你喜欢

转载自blog.csdn.net/qq_23587541/article/details/84995454
今日推荐