1. scoop
- 安装前提:
- 用户名不含中文字符
- windows7+ or windows server 2008+
- powershell 3+
- .net 4.5+ (实际测试4.0有时也可)
检查版本:
- 管理员运行power shell,输入以下代码
$PSVersionTable.PSVersion.Major #查看Powershell版本
$PSVersionTable.CLRVersion.Major #查看.NET Framework版本
- 开始安装
- 解决权限问题:
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
选择全是
2.正式安装
iwr -useb get.scoop.sh | iex
如需删除或重装,先删除C:\
2. choco
- 安装前提:
.NET Framework 4.0 PowerShell 2.0+(旧)- Windows 7+/Windows 2003+ (Server Core also, but not Windows Nano Server)
- Windows PowerShell v2+ (not PowerShell Core aka PowerShell 6 yet)
- .NET Framework 4.x+
- 磁盘空间15 MB(收费企业版10M)
- 如果是GUI版需要预留50-100 MB
检查版本:
- 管理员运行power shell,输入以下代码
$PSVersionTable.PSVersion.Major #查看Powershell版本
$PSVersionTable.CLRVersion.Major #查看.NET Framework版本
- 安装:
- 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://chocolatey.org/install.ps1'))
- 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"
食用方法
choco/scoop install #软件
choco/scoop uninstall #软件
#PS: scoop config proxy IP:porn
建议:
对于GUI和强权限建议官网下载手动安装,例:docker,7zip
对于版本切换,以及环境变量配置建议包管理器安装,例:nodejs,jdk,python;
Comments | NOTHING