簡介
The Package Manager for Windows
- 就如同Ubuntu有 apt 、CentOS有 yum、MacOSX有Homebrew Windows也有套件安裝管理工具 => Chocolatey
- 套件管理工具
- 指令安裝套件工具
- 省去自己設定的麻煩
安裝流程
- Requirements
- Windows 7+ / Windows Server 2003+
- PowerShell v2+ (minimum is v3 for install from this website due to TLS 1.2 requirement)
- .NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)(minimum is 4.5 for install from this website due to TLS 1.2 requirement)
- 我們就從最簡單的開始 以系統管理員安裝
- 用系統管理員身分開啟PowerShell
看到
PS C:\WINDOWS\system32>
就是系統管理員權限了 - 執行這行
如果看到
1
Get-ExecutionPolicy
Restricted
則執行或1
Set-ExecutionPolicy AllSigned
1
Set-ExecutionPolicy Bypass -Scope Process
- 執行這行開始安裝
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://chocolatey.org/install.ps1'))
- 等他跑完也沒出現錯誤就安裝完成了
- 可以執行
choco
或choco -?
查看如何使用chocolatey
有問題可以在下方utterances留言喔