



当前以下操作系统支持PowerShell 7.1 版本的安装,非Windows 系统支持的版本和要求有一定的限制。
· Windows 8.1/10 (including ARM64)
· Windows Server 2012 R2, 2016, 2019, and Semi-Annual Channel (SAC)
· Ubuntu 16.04/18.04/20.04 (including ARM64)
· Ubuntu 19.10 (via Snap package)
· Debian 9/10
· CentOS and RHEL 7/8
· Fedora 30
· Alpine 3.11+ (including ARM64)
· macOS 10.13+
需要注意的是,Windows 7 由于生命周期支持策略不再受到支持,其他版本更新到PowerShell 7.1需要如下的组件支持。
· Windows 10 Universal C Runtime
Windows 10 Universal C Runtime 的下载网址如下:https://www.microsoft.com/en-us/download/details.aspx?id=50410。
· .Net 4.8 版本支持
.Net 4.8 下载网址如下:https://dotnet.microsoft.com/download/dotnet-framework/net48。
在完成PowerShell 7.1安装之前的准备条件之后,就可以进行PowerShell的安装,本书写作时最新版本是7.1.2,PowerShell最新版本的下载地址位于GitHub。图2.4所示为安装PowerShell 7.1。
图2.4 安装PowerShell 7.1
这里注意勾选需要进行配置的选项,然后单击Next完成PowerShell 7.1版本的安装。