中文

在 Windows VPS 上安装 Chocolatey

1 min
VPS/VDS 主机

Chocolatey 是 Windows 的包管理器,适合在 VPS 上通过命令行批量、静默安装软件。

前提条件

  • 以管理员身份运行 PowerShell
PowerShell
Set-ExecutionPolicy Bypass -Scope Process -Force

安装

PowerShell
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

重新打开 PowerShell 后验证:

PowerShell
choco -v

示例

PowerShell
choco install git -y choco install 7zip -y choco upgrade all -y

Chocolatey 为第三方生态,安装前请在社区源核对软件包说明。

及时了解最新的优惠、折扣和特别促销活动。

查看促销

我们使用Cookie

我们使用分析性Cookie来改善您在我们网站上的体验。数据不会出售给第三方。了解更多请查看我们的 隐私政策.