要求:
Windows 10 无要求
image.png其它系统版本:
Windows 7+ / Windows Server 2003+
PowerShell v2+ (Not PowerShell Core yet though)
.NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)
That's it! All you need is choco.exe (that you get from the installation scripts) and you are good to go! No Visual Studio required.
image.png
命令如下:
image.png@"%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"
choco search <keyword> 搜索软件
choco list <keyword> 跟 search 命令功能类似
choco install <package1 package2 package3...> 安装软件
choco install <package> -version *** 安装指定版本
choco uninstall name 卸载软件
choco version <package> 查看安装包的版本情况
choco upgrade <package> 更新某个软件
choco list -localonly 查看一下所有安装在本地的包的列表
choco list -lo 功能同上
使用cmd的时候,需要使用管理员权限
网友评论