Chocolatey 安裝

簡介

The Package Manager for Windows

  • 就如同Ubuntu有 apt 、CentOS有 yum、MacOSX有Homebrew Windows也有套件安裝管理工具 => Chocolatey
  • 套件管理工具
    • 指令安裝套件工具
    • 省去自己設定的麻煩

安裝流程

  1. 官方安裝流程
  • 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)
  1. 我們就從最簡單的開始 以系統管理員安裝
  2. 用系統管理員身分開啟PowerShell 看到PS C:\WINDOWS\system32>就是系統管理員權限了
  3. 執行這行
    1
    
    Get-ExecutionPolicy
    
    如果看到 Restricted 則執行
    1
    
    Set-ExecutionPolicy AllSigned
    
    1
    
    Set-ExecutionPolicy Bypass -Scope Process
    
  4. 執行這行開始安裝
    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'))
    
  5. 等他跑完也沒出現錯誤就安裝完成了
  6. 可以執行chocochoco -? 查看如何使用chocolatey

有問題可以在下方utterances留言喔

updatedupdated2024-08-192024-08-19
載入評論