Scoop安装使用记录

环境

1
2
3
4
# Windows 10 专业版 
# 确保是powershell 5(及以上)
# 查看当前版本
$PSVersionTable.PSVersion

安装

1
2
3
4
5
6
7
8
9
10
11
12
13
# 将执行权限改为本地无需签名
Set-ExecutionPolicy RemoteSigned -scope CurrentUser

# 设置 scoop 安装路径为 D:\scoop
$env:SCOOP='D:\Scoop'
[environment]::setEnvironmentVariable('SCOOP',$env:SCOOP,'User')

# 全局安装路径修改(可以不执行)
$env:SCOOP_GLOBAL='D:\ScoopGlobalApps'
[environment]::setEnvironmentVariable('SCOOP_GLOBAL',$env:SCOOP_GLOBAL,'Machine')

# 下载并执行脚本
iwr -useb get.scoop.sh | iex

迁移

  • 安装Scoop
  • 将原Scoop文件内容复制到目标Scoop目录
  • 重新设定图标:
    • scoop reset *

懒人命令

1
2
# 更新、清理缓存、清理历史版本
scoop update * ; scoop cache rm *;scoop cleanup *;

F&A

1
2
3
4
5
6
7
8
9
10
11
如果使用"科学上网",需要通过如下命令关闭 aria2
scoop config aria2-enabled false

# aria2 在 Scoop 中默认开启
scoop config aria2-enabled true

# 关于以下参数的作用,详见aria2的相关资料
scoop config aria2-retry-wait 4
scoop config aria2-split 16
scoop config aria2-max-connection-per-server 16
scoop config aria2-min-split-size 4M