使用管理员权限打开CMD,输入:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
或管理员权限打开PowerShell
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
choco -v
choco upgrade chocolatey
常用功能如下:
choco search
choco install
choco upgrade
choco uninstall
choco list --local-only
原文:https://www.cnblogs.com/antisamael/p/10787656.html