Scoop Installation and Configuration Guide
Scoop is my personal favorite Windows package manager. However, its default configuration depends on GitHub, which leads to slow downloads and errors in China. This guide covers installation, mirror switching, and acceleration.
Prerequisites
PowerShell blocks local scripts by default. You need to unlock it:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserFor PowerShell installation and beautification, see Beautifying Windows Terminal. It is recommended to install via Scoop:
scoop install powershellInstall Scoop
Use NJU mirror for a fast installation:
irm https://mirror.ghproxy.com/https://raw.githubusercontent.com/duzyn/scoop-cn/master/install.ps1 | iexIf SSL errors occur, bypass certificate validation:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
add-type -TypeDefinition @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
}
"@
System.Net.ServicePointManager::CertificatePolicy = New-Object TrustAllCertsPolicy
irm https://ghproxy.cc/https://raw.githubusercontent.com/duzyn/scoop-cn/master/install.ps1 | iexVerify:
scoop --versionSwitch Mirrors: Chinese Mirrors + Practical Buckets
Remove default buckets
scoop bucket rm main
scoop bucket rm extras
scoop bucket rm versionsAdd NJU mirrors
main / extras / versions / nirsoft use the NJU mirror, which is stable and fast for git pulls:
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
scoop bucket add versions https://mirror.nju.edu.cn/git/scoop-versions.git
scoop bucket add nirsoft https://mirror.nju.edu.cn/git/scoop-nirsoft.git/Add official GitHub buckets (proxied)
Use official GitHub repos with a proxy prefix for games / sysinternals:
scoop bucket add games https://gh-proxy.com/https://github.com/Calinou/scoop-games
scoop bucket add sysinternals https://gh-proxy.com/https://github.com/niheaven/scoop-sysinternalsAdd Chinese software buckets
Dorado (recommended, clean):
scoop bucket add dorado https://gh-proxy.com/https://github.com/chawyehsu/dorado.gitScoopCN (alternative):
scoop bucket add scoopcn https://gh-proxy.com/https://github.com/scoopcn/scoopcn.gitFor existing GitHub buckets, switch the git remote instead of re-cloning (the script menu below can also batch-process them):
git -C "$env:SCOOP\buckets\games" remote set-url origin "https://gh-proxy.com/https://github.com/Calinou/scoop-games"Speed Optimization
Enable Aria2
scoop uninstall aria2 --purge
scoop cache rm aria2
scoop install https://mir.nju.edu.cn/git/scoop-extras/raw/master/bucket/aria2.json
scoop config aria2-enabled true
scoop config aria2-retry-wait 2
scoop config aria2-split 5
scoop config aria2-max-connection-per-server 5
scoop config aria2-min-split-size 4MProxy GitHub downloads
Run directly in PowerShell and follow the menu:
irm https://raw.githubusercontent.com/Dr1mH4X/Scripts/refs/heads/main/pwsh/scoop-proxy.ps1 | iexSince scoop update overwrites download.ps1 and breaks the patch, save the script locally and run one command to update Scoop and re-enable acceleration (it auto-reads your configured GITHUB_PROXY):
.\scoop-proxy.ps1 -UpdateTo switch to a different acceleration link, add the -Proxy parameter:
.\scoop-proxy.ps1 -Update -Proxy ghfast.topIn interactive mode, running the script and picking option 6 does the same thing.
Refresh and verify
scoop update
scoop bucket listRestore SSL validation
System.Net.ServicePointManager::CertificatePolicy = $nullInstall scoop-search (Faster Search)
scoop search queries the GitHub API and typically takes 20+ seconds. scoop-search is a local drop-in replacement that indexes manifests for near-instant results — roughly 350x faster.
scoop install scoop-searchInstall UniGetUI (GUI)
UniGetUI is a graphical frontend for CLI package managers including Scoop, Winget, and Chocolatey. Browse, install, update, and uninstall software in one window — no commands needed.
scoop install unigetuiLaunch UniGetUI from the Start Menu. It auto-detects your configured Scoop buckets and displays all Scoop-installed software in its interface.
Daily Commands
| Action | Command |
|---|---|
| Search | scoop-search <name> |
| Install | scoop install <name> |
| Uninstall | scoop uninstall <name> |
| Update single app | scoop update <name> |
| Update all | scoop update * |
| List installed | scoop list |
| Cleanup old versions | scoop cleanup * |
| Clear cache | scoop cache rm * |