随机
Enter 搜索 ↑↓ 切换 Esc 清空

scoop

命令

Windows 命令行包管理器

scoop

Windows 命令行包管理器

补充说明

scoop命令 是一个 Windows 命令行包管理器,专注于安装开源开发工具。与 Chocolatey 不同,它默认安装到用户目录(无需管理员权限),且不污染系统路径。

语法

scoop [命令] [选项]

常用命令

install         # 安装包
uninstall       # 卸载包
update          # 更新包或 scoop 自身
list            # 列出已安装的包
search          # 搜索包
status          # 查看状态(更新信息)
bucket          # 管理桶(软件源)
cleanup         # 清理旧版本
cache           # 管理缓存
hold            # 固定版本

实例

# 安装 scoop(PowerShell 中)
# Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
# irm get.scoop.sh | iex

# 搜索包
scoop search git

# 安装包
scoop install git
scoop install nodejs
scoop install ffmpeg

# 添加 bucket(扩展源)
scoop bucket add extras
scoop bucket add nerd-fonts
scoop bucket add versions

# 从特定 bucket 安装
scoop install extras/vscode

# 列出已安装的包
scoop list

# 更新 scoop 自身
scoop update

# 更新所有包
scoop update *

# 更新特定包
scoop update python

# 卸载包
scoop uninstall nodejs

# 清理旧版本
scoop cleanup *

# 查看状态
scoop status

# 固定版本
scoop hold nodejs

# 取消固定
scoop unhold nodejs

# 查看缓存
scoop cache show

# 清理缓存
scoop cache rm *