PS C:\> winget search Microsoft.PowerShell
名称 ID 版本 源
---------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.4.1.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.5.0.1 winget
PS C:\> winget install --id Microsoft.Powershell --source winget
尝试更新源失败: winget
已找到 PowerShell [Microsoft.PowerShell] 版本 7.3.6.0
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://github.com/PowerShell/PowerShell/releases/download/v7.3.6/PowerShell-7.3.6-win-x64.msi
██████████████████████████████ 100 MB / 100 MB
已成功验证安装程序哈希
正在启动程序包安装...
已成功安装
文章评论