什么是Chonolatey
官方地址: https://chocolatey.org/
choco 是windows 下的一种包管理器,支持一键安装很多windows 下的软件。 类似于Linux下的 apt 和 rpm.
安装 Chocolatey:
- cmd 下的安装:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command " [System.Net.ServicePointManager]::SecurityProtocol = 3072; 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; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient

Chocolatey是Windows平台的包管理器,类似Linux的apt和rpm。本文介绍了如何通过cmd或PowerShell安装Choco,启用全局确认,搜索和安装软件包,如nodepad++,以及进行卸载和升级操作。它简化了Windows软件的管理,让环境变量配置更加便捷。
最低0.47元/天 解锁文章
690





