scoop的使用

Scoop 是一个面向 Windows 的命令行安装程序(包管理器),旨在简化在 Windows 系统上安装、更新和管理开源命令行工具和应用程序的过程。

主要特点包括:

  • 无需管理员权限 :默认将软件安装到用户目录(如 ~\scoop),避免系统污染。
  • 使用简单 :通过简洁的命令(如 scoop install <app>)即可完成软件的安装。
  • 基于 Git 和 JSON 清单:软件定义以 JSON 格式存储在称为"bucket"的仓库中,便于维护和扩展。
  • 支持多 bucket :除了官方主仓库(main bucket),还支持额外的社区或私有 bucket(如 extrasversions 等)。
  • 自动处理 PATH 和依赖:安装后自动配置环境变量,部分软件会自动安装所需依赖(如 Visual C++ Redistributables)。

查找 scoop 可下载的 Apps,可以从 https://scoop.sh/#/apps 寻找

安装下载步骤

打开powershell,依次输入下面的命令

powershell 复制代码
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex

配置国内镜像源

一般 scoop 默认配置的源下载比较缓慢,我们使用国内的镜像源。

先删除默认 main

powershell 复制代码
scoop bucket rm main

添加南大镜像

powershell 复制代码
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

恢复回官方源

想要从国内源恢复至官方源

powershell 复制代码
scoop bucket rm main
scoop bucket rm extras
scoop bucket add main
scoop bucket add extras

config配置

查看配置

powershell 复制代码
scoop config

建议开启缓存,避免重复下载

powershell 复制代码
scoop config cache_enabled true

常用命令

powershell 复制代码
scoop install git nodejs python
scoop search jdk
scoop update *
scoop list
scoop reset python39  # 切换默认 Python 版本
相关推荐
花酒锄作田11 小时前
使用 pkgutil 实现动态插件系统
python
前端付豪15 小时前
LangChain链 写一篇完美推文?用SequencialChain链接不同的组件
人工智能·python·langchain
曲幽16 小时前
FastAPI实战:打造本地文生图接口,ollama+diffusers让AI绘画更听话
python·fastapi·web·cors·diffusers·lcm·ollama·dreamshaper8·txt2img
老赵全栈实战16 小时前
Pydantic配置管理最佳实践(一)
python
阿尔的代码屋1 天前
[大模型实战 07] 基于 LlamaIndex ReAct 框架手搓全自动博客监控 Agent
人工智能·python
AI探索者2 天前
LangGraph StateGraph 实战:状态机聊天机器人构建指南
python
AI探索者2 天前
LangGraph 入门:构建带记忆功能的天气查询 Agent
python
FishCoderh2 天前
Python自动化办公实战:批量重命名文件,告别手动操作
python
躺平大鹅2 天前
Python函数入门详解(定义+调用+参数)
python
曲幽2 天前
我用FastAPI接ollama大模型,差点被asyncio整崩溃(附对话窗口实战)
python·fastapi·web·async·httpx·asyncio·ollama