使用|使用 scoop 安装管理 windows 软件
【使用|使用 scoop 安装管理 windows 软件】ref: (https://github.com/lukesampson/scoop)1. 安装 scoop
- 1.1 安装 PowerShell 5.0 以上版本
- win10: 已自带;
- win7 x64: 下载 Win7AndW2K8R2-KB3191566-x64.zip,安装;
ref: https://docs.microsoft.com/zh-cn/powershell/scripting/install/installing-windows-powershell?view=powershell-6
- 1.2 以当前Win账户运行PowerShell
set-executionpolicy remotesigned -s cu
- 1.3 安装 scoop
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
2. 使用方法
- 2.1 安装常用软件
scoop install sudo
scoop install git 7zip openssh
scoop install aria2
scoop install ffmpeg
scoop install nodejs
scoop install python# 安装指定的版本,不要更新
scoop install python@3.6.8
scoop hold python
# scoop unhold python
- git 配置
- 右键菜单里添加
git bash here
的方法 - 新建注册表文件
git bash here.reg
, 内容如下(路径按需修改)
WWindows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Git Bash Here]
"ICON"="\"C:\\Users\\XXXX\\scoop\\apps\\git\\current\\git-bash.exe\"" [HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Git Bash Here\command]
@="\"C:\\Users\\XXXX\\scoop\\apps\\git\\current\\git-bash.exe\""
- 2.2 安装 extras 库的软件
# 添加库 extras
scoop bucket add extras
# 安装
scoop install googlechrome
scoop install everything
scoop install screentogif
scoop install snipaste
scoop install vscode# 添加库 versions, 可以安装其他(落后的)版本
scoop bucket add versions
scoop install python@3.7.7# 添加库 jetbrains
scoop bucket add jetbrains
scoop install pycharm-professional# 添加库 Ash258
scoop bucket add Ash258 'https://github.com/Ash258/scoop-Ash258.git'
scoop install potplayer# 添加 第三方库 dorado
scoop bucket add dorado 'https://github.com/h404bi/dorado'
scoop install trafficmonitor
scoop install wechat
scoop install qqplayer
- 更多的库 lukesampson/scoop/blob/master/buckets
{
"main": "https://github.com/ScoopInstaller/Main",
"extras": "https://github.com/lukesampson/scoop-extras",
"versions": "https://github.com/ScoopInstaller/Versions",
"nightlies": "https://github.com/ScoopInstaller/Nightlies",
"nirsoft": "https://github.com/kodybrown/scoop-nirsoft",
"php": "https://github.com/ScoopInstaller/PHP",
"nerd-fonts": "https://github.com/matthewjberger/scoop-nerd-fonts",
"nonportable": "https://github.com/oltolm/scoop-nonportable",
"java": "https://github.com/ScoopInstaller/Java",
"games": "https://github.com/Calinou/scoop-games",
"jetbrains": "https://github.com/Ash258/Scoop-JetBrains"
}
- 更多更多的第三方库 rasa/scoop-directory
- 2.3 其他命令
# 显示已安装软件
scoop list# 显示可更新的软件
scoop status# 更新scoop, 更新指定软件
scoop update
scoop update
scoop update vscode-insiders -kf# 更新 nightly 版本# 清理所有旧版软件, 清理指定软件, 清理过期的安装包
scoop cleanup *
scoop cleanup scoop cleanup -k *# 或 scoop cleanup --cache *# 查找软件
scoop search # 显示软件信息(含必要配置说明)
scoop info
用scoop管理软件,清爽多了,全部都在
c:/user/xxx/scoop/app
里,但是也有几个问题:- 好多软件是从官网,github,amazon下载的,网速比较渣,可以先安装aria2,安装后scoop会优先调用aria2来下载软件;
- 安装之后一般系统环境变量是设置好了的,但是有些软件的文件关联,右键菜单之类需要手动添加,可以先scoop info ,看看有没有相关配置说明参考。
c:/user/xxx/.config/scoop/config.json
, 加入以下:{
"aria2-enabled":true,
"aria2-retry-wait":5,
"aria2-split":10,
"aria2-min-split-size":"2M"
}
也可以用命令行
scoop config
:scoop config aria2-enabled true# default: true
scoop config aria2-retry-wait 5# default: 2
scoop config aria2-split 5# default: 5
scoop config aria2-max-connection-per-server 10# default: 5
scoop config aria2-min-split-size] 2M# default: 5M
推荐阅读
- 由浅入深理解AOP
- Mac安装Chromedriver
- 【译】20个更有效地使用谷歌搜索的技巧
- mybatisplus如何在xml的连表查询中使用queryWrapper
- MybatisPlus|MybatisPlus LambdaQueryWrapper使用int默认值的坑及解决
- MybatisPlus使用queryWrapper如何实现复杂查询
- MongoDB,Wondows下免安装版|MongoDB,Wondows下免安装版 (简化版操作)
- MAC安装Mongo
- iOS中的Block
- Linux下面如何查看tomcat已经使用多少线程