scoop
scoop官网 https://scoop.sh/
项目github地址 https://github.com/ScoopInstaller/Scoop
安装scoop
Set-ExecutionPolicy RemoteSigned 修改脚本执行策略
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression 安装scoop
安装软件
- git
scoop及bucket更新均依赖此软件,如果电脑上已经手动那装过,只需要在环境变量path下添加git目录即可。
- innounp
一个依赖的组件(可以不装,后面装软件的时候会自动安装)
scoop bucket add main
scoop install main/innounp
- wingetui
scoop bucket add extras
scoop install extras/wingetui
- aria2 用于scoop加速下载
PS C:\Users\zbf> scoop download extras/powertoys
INFO Downloading 'powertoys' [64bit] from extras bucket
Starting download with aria2 ...
Download: 06/07 13:06:17 [ERROR] CUID#8 - Download aborted. URI=https://github.com/microsoft/PowerToys/releases/downloadDownload: Exception: [AbstractCommand.cc:351] errorCode=19 URI=https://objects.githubusercontent.com/github-production-release-asset-2e65be/184456251/53f539fe-9eb4-4888-bc2d-c45ba4f796d1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240607%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240607T050606Z&X-Amz-Expires=300&X-Amz-Signature=1cac772561f206fd1bf0cc515fe2e5de2c574e85b67fc3948ba14625dab39afc&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=184456251&response-content-disposition=attachment%3B%20filename%3DPowerToysUserSetup-0.81.1-x64.exe&response-content-Download: -> [AbstractCommand.cc:789] errorCode=19 CUID#8 - Name resolution for objects.githubusercontent.com failed:TDownload: Download Results:
Download: gid |stat|avg speed |path/URI
Download: ======+====+===========+=======================================================
Download: 859f9f|ERR | 0B/s|C:/Users/zbf/scoop/cache/powertoys#0.81.1#https_github.com_microsoft_PowerToys_releases_download_v0.81.1_PowerToysUserSetup-0.81.1-x64.exe
Download: Status Legend:
Download: (ERR):error occurred.
Download: aria2 will resume download if the transfer is restarted.
Download: If there are any errors, then see the log file. See '-l' option in help/man page for details.
ERROR Download failed! (Error 19) Name resolution failed
ERROR https://github.com/microsoft/PowerToys/releases/download/v0.81.1/PowerToysUserSetup-0.81.1-x64.exe
referer=https://github.com/microsoft/PowerToys/releases/download/v0.81.1/
dir=C:\Users\zbf\scoop\cache
out=powertoys#0.81.1#https_github.com_microsoft_PowerToys_releases_download_v0.81.1_PowerToysUserSetup-0.81.1-x64.exe
ERROR & 'C:\Users\zbf\scoop\apps\aria2\current\aria2c.exe' --input-file='C:\Users\zbf\scoop\cache\powertoys.txt' --user-agent='Scoop/1.0 (+http://scoop.sh/) PowerShell/7.4 (Windows NT 10.0; Win64; x64; Core)' --allow-overwrite=true --auto-file-renaming=false --retry-wait=2 --split=5 --max-connection-per-server=5 --min-split-size=5M --console-log-level=warn --enable-color=false --no-conf=true --follow-metalink=true --metalink-preferred-protocol=https --min-tls-version=TLSv1.2 --stop-with-process=2524 --continue --summary-interval=0 --auto-save-interval=1
Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Extras/issues/new?title=powertoys%400.81.1%3a+download+via+aria2+failed
PS C:\Users\zbf>
aria2报错,那就关闭aria2
scoop config aria2-enabled false
scoop环境详解
scoop的目录
C:\Users\xxxxx\scoop
buckets 软件源
cache 软件的下载缓存
apps scoop安装的所有软件都会装在这个目录下
persist 应用程序的用户数据
shims 一些应用程序的启动程序或脚本
-
apps下的每个软件的data都link到persist下软件对应的data
-
每个软件都是用currentlink到当前版本
源的json文件里面都是下载地址
scoop常用命令
#帮助手册
scoop help 或者 scoop /?
scoop bucket /?
scoop checkup #检查scoop的问题
scoop bucket list
scoop bucket known
scoop bucket add <别名> <git地址>
scoop bucket add 名称
scoop bucket rm <别名>
scoop search <query> #在已添加的源中搜索软件
scoop info <app> #查看软件信息
scoop list #列出scoop已安装的软件
scoop install aria2
scoop uninstall aria2
scoop download extras/powertoys #下载指定软件
scoop hold <软件名> #禁止指定软件更新
取消禁止更新使用 unhold
scoop update #更新scoop
scoop update <app> #更新指定软件
scoop update * #更新所有软件 或使用 -a
scoop cache show #查看scoop的下载缓存
scoop cache rm <app> #删除指定软件的下载缓存
scoop cache rm * #删除所有软件的下载缓存 或使用 -a
scoop cleanup #清理scoop旧版本
scoop cleanup <app> #清理指定程序的旧版本
* 或 -a #清理所有软件的旧版本
-k, --cache #清理过时下载缓存
scoop reset <软件名@版本号> #切换到指定版本
scoop export -c > scoopfile.json #导出app列表、源列表
scoop cat scoopfile.json #查看列表内容
scoop import scoopfile.json #根据导入的app列表安装软件
# 添加代理 根据实际需要,填写http代理信息
scoop config proxy 127.0.0.1:4412
# 删除代理
scoop config rm proxy
scoop create /?
scoop config /?
常见bucket
官方bucket
scoop bucket add extras
scoop bucket add versions
scoop bucket add nirsoft
scoop bucket add sysinternals
scoop bucket add php
scoop bucket add nerd-fonts
scoop bucket add nonportable
scoop bucket add Java
scoop bucket add games #会报错
其他三方bucket
scoop bucket add jetbrains
手册 https://gitee.com/scoop-installer/scoop
目前已知bucket已镜像至gitee,可访问 https://gitee.com/organizations/scoop-installer/projects 获取对应bucket库连接
# 举例添加scoopcn([Mostly Chinese applications / 大多是国内应用程序](https://github.com/scoopcn/scoopcn))
scoop bucket add scoopcn https://gitee.com/scoop-installer/scoopcn
scoop bucket add dorado https://github.com/chawyehsu/dorado
scoop bucket add Ash258 https://github.com/Ash258/Scoop-Ash258
scoop bucket add scoopet https://github.com/integzz/scoopet
scoop bucket add 42wim https://github.com/42wim/scoop-bucket.git
# raresoft 破解版软件集合
scoop bucket add raresoft https://github.com/L-Trump/scoop-raresoft
更多:https://lzw.me/a/scoop.html/comment-page-1
https://github.com/lzwme/scoop-proxy-cn
https://github.com/scoopcn/scoopcn
标签:管理器,--,bucket,scoop,add,https,软件包,com
From: https://www.cnblogs.com/jiyuchen1/p/18238068