ScoopInstaller 组织的国内镜像,纯净无修改,使用 Github Actions 自动同步
组织介绍

Scoop - Windows 中的命令行安装程序

安装 Scoop

  1. 打开 PowerShell 7.0+ (Core)Windows PowerShell 5.1

  2. 设置执行策略

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  3. 下载安装脚本

    Invoke-RestMethod -Uri https://gitee.com/scoop-installer-mirrors/Install/releases/download/install/install.ps1 -OutFile install.ps1
  4. 执行安装脚本

    .\install.ps1 -ScoopDir "D:\scoop"
    也可以指定全局安装目录
    1. 设置环境变量

      [Environment]::SetEnvironmentVariable("SCOOP_GLOBAL", "D:\scoop-global", "Machine")
    2. 执行安装脚本

      .\install.ps1 -ScoopDir "D:\scoop" -ScoopGlobalDir "D:\scoop-global"
  5. 设置 scoop 仓库

    scoop config scoop_repo https://gitee.com/scoop-installer-mirrors/Scoop
  6. 添加 bucket

    • main

      scoop bucket add main https://gitee.com/scoop-installer-mirrors/Main
    • extras

      scoop bucket add extras https://gitee.com/scoop-installer-mirrors/Extras
      其他官方 known bucket
      • versions

        scoop bucket add versions https://gitee.com/scoop-installer-mirrors/Versions
      • nerd-fonts

        scoop bucket add nerd-fonts https://gitee.com/scoop-installer-mirrors/scoop-nerd-fonts
      • java

        scoop bucket add java https://gitee.com/scoop-installer-mirrors/Java
      • php

        scoop bucket add php https://gitee.com/scoop-installer-mirrors/PHP
      • nirsoft

        scoop bucket add nirsoft https://gitee.com/scoop-installer-mirrors/Nirsoft
      • sysinternals

        scoop bucket add sysinternals https://gitee.com/scoop-installer-mirrors/scoop-sysinternals
      • games

        scoop bucket add games https://gitee.com/scoop-installer-mirrors/scoop-games

通过 abyss bucket 提升 Scoop 使用体验

  • 添加 abyss (GithubGitee)

    scoop bucket add abyss https://gitee.com/abgox/abyss

解决 Github 上的软件下载失败的问题

  • 如果不具备特殊网络条件,无法正常下载 Github 上的软件
  • 可以使用 abgox/scoop-tools 中的 scoop-installscoop-update 解决此问题
  1. 安装 scoop-install 和 scoop-update

    scoop install abyss/abgox.scoop-install
    scoop install abyss/abgox.scoop-update
  2. 设置 url 替换配置,如果有多个值,使用 ||| 分割

    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"
  3. 后续使用 scoop-installscoop-update 命令安装和更新软件即可

添加 scoop 命令补全以及 i18n 支持

  1. 使用 abgox/PSCompletions 添加 scoop 命令补全

    scoop install abyss/abgox.PSCompletions
    Import-Module PSCompletions
    psc add scoop scoop-install scoop-update
  2. 添加 i18n 支持 (由 abgox/scoop-i18n 提供)

    scoop install abyss/abgox.scoop-i18n
成就
0
Star
0
Fork
成员(1)
10931695 abgox 1727178678
abgox

搜索帮助