






















要在国内高效安装和使用 Scoop(Windows 包管理器),需解决 GitHub 访问慢的问题,通过国内镜像源和加速工具实现。以下是分步指南:
检查 PowerShell 版本打开非管理员权限的 PowerShell(按 Win + X,选 “Windows PowerShell”),执行命令:
powershell
$PSVersionTable.PSVersion.Major
输出需 ≥ 5.1(Windows 10/11 通常默认满足,若版本低需升级 PowerShell)。
允许运行本地脚本执行命令(仅当前用户生效,安全):
powershell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
选择以下任意一条命令,在 PowerShell 中执行,利用国内镜像加速安装:
powershell
irm https://ghproxy.cc/https://raw.githubusercontent.com/duzyn/scoop-cn/master/install.ps1 | iex
powershell
irm https://cdn.jsdelivr.net/gh/duzyn/scoop-cn/install.ps1 | iex
powershell
iwr -useb scoop.201704.xyz | iex
执行后,等待提示 Scoop was installed successfully!,表示安装完成。
Scoop 的 “仓库” 是软件包 的来源,替换为国内镜像仓库可大幅提升下载 速度:
移除默认国外仓库
powershell
scoop bucket rm main
添加国内镜像仓库
main(基础软件)和 extras(扩展软件):
powershell
scoop bucket add main https://mirror.nju.edu.cn/git/scoop-main.git
scoop bucket add extras https://mirror.nju.edu.cn/git/scoop-extras.git
dorado(含微信、网易云音乐等国产应用):
powershell
scoop bucket add dorado https://gitee.com/scoop-bucket/dorado.git
更新仓库列表执行后,Scoop 会同步国内镜像的软件包信息:
powershell
scoop update
安装 aria2(多线程 下载工具),让 Scoop 下载更高效:
安装 aria2
powershell
scoop install aria2
配置 aria2 多线程参数(进一步加速)
powershell
scoop config aria2-split 3
scoop config aria2-max-connection-per-server 3
scoop config aria2-min-split-size 1M
验证安装:
powershell
scoop --version
输出版本号则表示安装成功。
搜索软件(如搜索 lux):
powershell
scoop search lux
安装软件(如安装 lux 和 ffmpeg):
powershell
scoop install lux
scoop install ffmpeg
更新软件(更新所有已安装软件):
powershell
scoop update *
通过以上步骤,你可以在国内网络环境下,快速安装并流畅使用 Scoop 管理 Windows 软件啦~
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。