当前位置: 首页 > news >正文

[Win] [包管理器] powershell 安装 choco

[Win] [包管理器] powershell 安装 choco

目录
  • 01 简介
  • 02 安装流程
    • 2.1 使用管理员打开powershell
    • 2.2 执行以下命令:
    • 2.3 检查安装

腾讯云开发社区:安装Chocolatey

01 简介

Windows 系统上的“软件应用商店”或“包管理器”,但它主要通过命令行(如 PowerShell 或 CMD)来操作。

02 安装流程

2.1 使用管理员打开powershell

2.2 执行以下命令:

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')) 

2.3 检查安装

powershell执行

choco -?
choco --version

image