安裝
scoop安裝前提
- PowerShell版本要求:$psversiontable.psversion.major # should be >= 5.0
- PowerShell執(zhí)行:set-executionpolicy remotesigned -scope currentuser
- 默認安裝路徑:C:\Users\xxx\scoop
- 可自定義安裝路徑
打開powershell,輸入如下命令
1. 打開遠程權限
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
2. 環(huán)境變量
$env:SCOOP='D:\Scoop'
[Environment]::SetEnvironmentVariable('SCOOP',$env:SCOOP,'User')
# 全局安裝
# $env:SCOOP_GLOBAL='D:\Scoop'
# [environment]::setEnvironmentVariable('SCOOP_GLOBAL',$env:SCOOP_GLOBAL,'Machine')
3. 安裝
iwr -useb get.scoop.sh | iex
# 默認安裝路徑:`C:\Users\xxx\scoop`
#控制臺輸出安裝成功
Initializing...
Downloading ...
Creating shim...
Adding D:\Scoop\shims to your path.
Scoop was installed successfully!
Type 'scoop help' for instructions.
如安裝不了,可試試以下的任一種方式
4. 安裝必備軟件
# 多線程載軟件包支持
scoop install aria2
# scoop install 7zip
# scoop intall git
# 對aria2進行設置
scoop config aria2-split 3
scoop config aria2-max-connection-per-server 3
scoop config aria2-min-split-size 1M
也可試式如下方式
scoop install https://ghproxy.com/raw.githubusercontent.com/duzyn/scoop-cn/master/bucket/aria2.json
或
scoop install https://cdn.jsdelivr.net/gh/duzyn/scoop-cn/bucket/aria2.json
5. 切換國內鏡像、更新
# 添加國內鏡像
scoop config SCOOP_REPO https://gitee.com/scoop-bucket/scoop
# 切回官方鏡像
# scoop config SCOOP_REPO https://github.com/ScoopInstaller/Scoop
# 查看有哪些repo
scoop bucket known
# 添加bucklet
scoop bucket rm main
# scoop bucket add main
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
scoop bucket add dorado https://gitee.com/scoop-bucket/dorado.git
# 更新-每次添加完倉庫記得更新
scoop update
最后說一句:可以登錄https://scoop.sh/#/buckets 上面可以看到很多bucket以及軟件數(shù)
github國內代理: https://ghproxy.com/$1
使用
命令格式
scoop install <倉庫名>/<軟件名> -s
# 這個-s是取消hash校驗,建議加上
其他命令
scoop update #更新倉庫
scoop update * #更新所有軟件
scoop list #列出已安裝的軟件
scoop bucket list #列出已訂閱的倉庫
# 如果你在使用aria2下載的時候遇到了問題,可以關閉aria2下載功能。
scoop config aria2-enabled false|true #
# 可設置自有代理 (如果有的話)
scoop config proxy localhost:10800
常用的軟件清單
- 7zip、git
- Inkscape : 矢量圖制作
- jianyingpro :剪映pc版
- VLC : 視頻播放器
- OBS-studio : 錄屏軟件
- yu-writer : markdown編輯器