Chocolatey - Windows 套件管理工具

熟悉 Linux的使用者大多都使用過 apt或 yum套件管理工具,而MacOS的使用者則擁有 homebrew,這篇文章則是要介紹在Windows上有著相似功能的 - Chocolatey

安裝與準備工作:

  1. 以管理員權限開啟powershell

使用Chocolatey安裝套件:

完成Chocolatey的安裝後,就讓我們試著透過以下的步驟安裝go language

  1. 以管理員權限開啟powershell

最後,執行 go 來檢查golang指令是否存在。(需要重啟powershell )

常用指令:

列出已安裝的套件
choco list -l

安裝
choco install %Package Name%

移除
choco uninstall %Package Name%

重新載入環境變數 (某些情況還是需要重啟powershell)
refreshenv

參考資料:

Chocolately official website:
https://chocolatey.org/

Chocolately packages:
https://chocolatey.org/packages

Chef integration:
https://docs.chef.io/resource_chocolatey_package.html

Puppet integration:
https://forge.puppet.com/chocolatey/chocolatey

--

--

An engineer keeps pursuing the efficient way of software development

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Charles Yang

An engineer keeps pursuing the efficient way of software development