Chocolatey,Windows下包管理器
CMD安装Chocolatey
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
PowerShell安装Chocolatey
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
测试Chocolatey
输入choco
,如果出现以下情况,说明安装已经成功。
提示:如果遇到下面这种错误提示,只需要执行提示内的命令choco feature enable -n useFipsCompliantChecksums
即可。
使用
* 升级Chocolatey:choco upgrade chocolatey
* 查看包列表:choco list
* 安装Git:choco install git
* 升级Git:choco upgrade git