Windows 安装包管理器 choco

Windows choco About 868 words

choco

Windows下的包管理器类似于Ubuntu下的aptCentosyumMacbrew

官网

https://chocolatey.org

安装

备注:亲测PowerShell安装会闪退无法安装成功,CMD方式安装成功。(以管理员权限启动)

CMD 方式

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

PowerShell 方式

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

查看版本

choco -v

升级 choco 版本

choco upgrade chocolatey

常用命令

  • choco list -li查看本地安装的软件
  • choco search nodejs:查找安装包
  • choco install sublimetext3:安装sublimetext3
  • choco uninstall sublimetext3:卸载sublimetext3
  • choco upgrade sublimetext3:升级sublimetext3

更多命令

https://docs.chocolatey.org/en-us/choco/commands

Views: 3,531 · Posted: 2022-03-30

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh