惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

敖苛记

甜甜圈的数学:donut.c 是如何工作的 | 敖苛记 如何让 AI Agent 工具帮助你清理 C 盘,让 C 盘不再报红? | 敖苛记 如何安装 Claude Code 并用 cc-switch 配置国内大模型 | 敖苛记 如何在 Windows 安装 Git | 敖苛记 给 Deepseek 发 <think> 之后,它就串台了? | 敖苛记 如何处理 PowerShell 中文乱码问题 | 敖苛记 敖苛记 敖苛记 如何使用 ollama 和 open-webui 搭建自己的本地 AI 助手 | 敖苛记 如何使用 archinstall 安装 Arch Linux | 敖苛记 如何使用 Ventoy 制作一个便捷的 Arch Linux to go | 敖苛记
如何安装 Windows 的包管理器 scoop 并配置国内镜像 | 敖苛记
敖苛, i@kayro.cn · 2026-05-15 · via 敖苛记

什么是包管理器

你可能使用过 Ubuntu,那你就应该用过 apt 命令,apt 就是 Ubuntu 的包管理器。

包管理器可以让你只需输入一行命令就可以方便快捷地安装、更新和管理软件包。不需要上网找软件安装包,也可以避免下载带盗版软件的问题。而且会自动安装软件所须的依赖,不需要困惑于频繁的缺少依赖错误。

那 Windows 上有什么包管理器呢?—— scoop

提醒

scoop 通过 git 更新,需要提前安装 git,可以参考我的这篇文章

打开 PowerShell

允许当前用户运行线上脚本,并不需要手动确认:

PS>

Set-ExecutionPolicy RemoteSigned -scope CurrentUser -Force

默认安装到用户目录:

PS>

iwr -useb scoop.201704.xyz | iex

如果想自定义安装目录:

PS>

irm scoop.201704.xyz -outfile 'install.ps1'

请根据自己的喜好修改修改 -ScoopDir-ScoopGlobalDir的值:

PS>

.\install.ps1 -ScoopDir 'D:\Scoop' -ScoopGlobalDir 'D:\GlobalScoopApps'

-ScoopDir 指定用户安装目录,-ScoopGlobalDir 指定全局安装目录(scoop install -g)。

警告

如果以管理员身份运行会报错,请以普通用户身份运行。

此时,运行 scoop help,如果能看到帮助信息就说明安装成功了。

切换国内镜像

更换 scoop 仓库地址为 gitee:

PS>

scoop config SCOOP_REPO "https://gitee.com/scoop-installer/scoop"

拉取新库地址:

PS>

scoop update

添加 bucket(可选)

bucket 就是 scoop 的软件仓库,类似 apt 的 source,添加后可获取更多软件。

添加官方 bucket

查看有哪些已知 bucket:

PS>

scoop bucket known

添加常用 bucket

PS>

scoop bucket add extras

国内镜像已经把已知 bucket 同步到 gitee,添加后会自动从 gitee 拉取。可以用 scoop bucket list 确认,正常情况下 URL 应该显示 gitee.com

text
Name     Source                                       Manifests
----     ------                                       ---------
main     https://gitee.com/scoop-installer/Main            1524
extras   https://gitee.com/scoop-installer/Extras          2305

添加第三方 bucket

基本语法:

PS>

scoop bucket add <别名> <git地址>

例如添加 scoopcn(国内应用):

PS>

scoop bucket add scoopcn https://gitee.com/scoop-installer/scoopcn

如果不想要某个 bucket:

PS>

scoop bucket rm <别名>

常用命令

安装:

PS>

scoop install <软件名>

指定 bucket 安装:

PS>

scoop install scoopcn/wechat

一次装多个:

PS>

scoop install qq wechat aria2

卸载:

PS>

scoop uninstall qq

更新所有:

PS>

scoop update *

查看已安装:

PS>

scoop list

搜索软件:

PS>

scoop search <关键词>

暂停更新某个软件:

PS>

scoop hold <软件名>

允许更新:

PS>

scoop unhold <软件名>

切换已安装软件的版本:

PS>

scoop reset <软件名@版本号>

清理旧版本:

PS>

scoop cleanup *

清理下载缓存:

PS>

scoop cache rm *