簡介
Chocolatey is a software management solution unlike anything else you've ever experienced on Windows. Chocolatey brings the concepts of true package management to allow you to version things, manage dependencies and installation order, better inventory management, and other features.
安裝
以管理員權限打開Windows PowerShell并運行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'))
安裝圖形化界面
打開Windows PowerShell并運行choco install chocolateygui。
安裝完成之后輸入chocolateygui或在開始菜單中打開Chocolatey Gui軟件打開圖形界面,選擇左側菜單中的chocolatey,安裝你想安裝的軟件即可。
常用命令
- 版本和幫助信息
- 查看版本:
choco - 獲取幫助:
choco <command> -h
- 查看版本:
- 包管理
- 查看本地安裝的軟件包:
choco list --local-only - 搜索指定的包:
choco search chocolatey - 安裝指定的包:
choco install chocolatey - 安裝指定的包到指定目錄下:
choco install chocolatey --install-arguments="'/DIR=D:\chocolatey'" - 更新指定的包:
choco upgrade chocolatey - 移除指定的包:
choco uninstall chocolatey
- 查看本地安裝的軟件包: