Chocolatey
安装
Chocolatey Software | Installing Chocolatey
管理员权限打开 Windows PowerShell,
Run
Get-ExecutionPolicy. If it returnsRestricted, then runSet-ExecutionPolicy AllSignedorSet-ExecutionPolicy Bypass -Scope Process.1
2PS C:\Users\magnolia> Get-ExecutionPolicy
Bypass输入:
1
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
版本:
1
2choco -v
2.4.3
使用
安装软件的路径:C:\ProgramData\chocolatey\lib
- java:
choco install jdk8 - golang:
choco install golang
指定安装路径
choco install golang --install-args="/DIR=D:\software\golang"