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

推荐订阅源

Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
IT之家
IT之家
MongoDB | Blog
MongoDB | Blog
博客园_首页
S
SegmentFault 最新的问题
H
Help Net Security
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
T
The Blog of Author Tim Ferriss
量子位
GbyAI
GbyAI
M
MIT News - Artificial intelligence
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
B
Blog
月光博客
月光博客
博客园 - 聂微东
Vercel News
Vercel News
罗磊的独立博客
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
Arctic Wolf
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
L
Lohrmann on Cybersecurity
I
Intezer
小众软件
小众软件
T
The Exploit Database - CXSecurity.com
Jina AI
Jina AI
C
Check Point Blog
AWS News Blog
AWS News Blog
C
Cisco Blogs
Martin Fowler
Martin Fowler
The Last Watchdog
The Last Watchdog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
宝玉的分享
宝玉的分享
S
Security Affairs
大猫的无限游戏
大猫的无限游戏
N
News and Events Feed by Topic
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hacker News: Front Page
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Full Disclosure
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog

敖苛记

甜甜圈的数学: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 *