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
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 games https://gitee.com/scoop-installer/scoop-games
scoop bucket add nirsoft https://mirror.nju.edu.cn/git/scoop-nirsoft.git/
scoop bucket add sysinternals https://gitee.com/scoop-installer/scoop-sysinternalsAdd Chinese software buckets
Dorado (recommended, clean):
scoop bucket add dorado https://gitee.com/scoop-bucket/dorado.gitScoopCN (alternative):
scoop bucket add scoopcn https://gitee.com/scoop-installer/scoopcn.gitRefresh and verify
scoop update
scoop bucket listSpeed 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 4MDynamic URL replacement
Use tools for URL replacement during install/update:
scoop bucket add abyss https://gitee.com/abgox/abyss
scoop install abyss/abgox.scoop-install
scoop install abyss/abgox.scoop-updateConfigure replacement rules (using a GitHub mirror proxy):
scoop config abgox-scoop-install-url-replace-from "^https://github.com|^https://raw.githubusercontent.com"
scoop config abgox-scoop-install-url-replace-to "https://gh-proxy.com/github.com|https://gh-proxy.com/raw.githubusercontent.com"Restore 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 * |