美文网首页
Chocolatey

Chocolatey

作者: 上杉丶零 | 来源:发表于2022-09-01 23:28 被阅读0次

    简介

    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

    相关文章

      网友评论

          本文标题:Chocolatey

          本文链接:https://www.haomeiwen.com/subject/fhiynrtx.html