https://scoop.sh https://github.com/lukesampson/scoop
安装 Scoop
- (可选)自定义 Scoop 的普通安装目录和全局安装目录
在系统中添加以下环境变量:
| 用户变量 | SCOOP |
D:\\Programs\\Scoop |
|---|---|---|
| 系统变量 | SCOOP_GLOBAL |
D:\\Programs\\ScoopGlobalApps |
也可以使用以下命令:
# 自定义安装目录$env:SCOOP='D:\Programs\Scoop'[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')# 自定义全局安装目录(需要管理员身份运行 PowerShell)$env:SCOOP_GLOBAL='D:\Programs\ScoopGlobalApps'[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')
Set-ExecutionPolicy RemoteSigned -scope CurrentUseriwr -useb get.scoop.sh | iex
- 可以自定义 Scoop 的安装目录和全局安装目录
可以使用以下命令,也可以设置相应的环境变量值
# 自定义安装目录$env:SCOOP='D:\Programs\Scoop'[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')# 自定义全局安装目录(需要管理员身份运行 PowerShell)$env:SCOOP_GLOBAL='D:\Programs\ScoopGlobalApps'[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')# 执行 Scoop 安装命令
- 安装完成后,敲入
scoop命令查看所有用法: ```powershell Usage: scoop[ ]
Some useful commands are:
alias Manage scoop aliases bucket Manage Scoop buckets cache Show or clear the download cache checkup Check for potential problems cleanup Cleanup apps by removing old versions config Get or set configuration values create Create a custom app manifest depends List dependencies for an app export Exports (an importable) list of installed apps help Show help for a command hold Hold an app to disable updates home Opens the app homepage info Display information about an app install Install apps # 安装 list List installed apps # 列出已安装 prefix Returns the path to the specified app reset Reset an app to resolve conflicts search Search available apps # 搜索 status Show status and check for new app versions unhold Unhold an app to enable updates uninstall Uninstall an app # 卸载 update Update apps, or Scoop itself # 更新 virustotal Look for app’s hash on virustotal.com which Locate a shim/executable (similar to ‘which’ on Linux) # 查看安装位置
Type ‘scoop help
<a name="wblwg"></a>## 配置 Scoop- 添加 `extras` 仓库```powershellscoop bucket add extras
- 关闭 aria2 下载
scoop config aria2-enabled false
配置文件实例
在 C:\Users\DP\.config\scoop\config.json
{"lastupdate": "2020-05-29T13:09:53.6091225+08:00","proxy": "127.0.0.1:1080","SCOOP_REPO": "https://github.com/lukesampson/scoop","SCOOP_BRANCH": "master"}
安装软件
默认会安装到 C:\Users\<user>\scoop ;使用 --global 参数进行全局安装,安装在 C:\ProgramData\scoop
C:\Users\DP> scoop listInstalled apps:7zip 19.00 *global*aria2 1.35.0-1carnac 2.3.3 [extras]dadroitjsonviewer 1.1.1407 [extras]dark 3.11.2git 2.26.2.windows.1 *global*innounp 0.49lessmsi 1.6.91nodejs-lts 12.16.2openssh 7.6p1 *global*pandoc 2.9.2.1putty 0.73 [extras]python 3.8.2q-dir 8.25 [extras]sudo 0.2020.01.26telnet msys-inetutils-1.7-1touch 0.2018.07.25typora 0.9.86 [extras]vlc 3.0.8 [extras]which 2.20winscp 5.17.5 [extras]
基础环境
scoop install sudosudo scoop install 7zip git openssh --globalscoop install aria2 curl grep sed less touch which
开发工具
# 开发环境scoop install python nodejs-lts go# 代码编辑器scoop install vscode sublime-text# Markdown 工具scoop install typora# JSON 工具scoop install dadroitjsonviewer# 数据库工具scoop install heidisql# Unix 工具集scoop install busybox cygwin msys2
远程工具
# Linux 远程scoop install putty winscp# Windows 远程scoop install teamviewer# 远程管理工具scoop install mremoteng
系统工具
# 修改 hostsscoop install hosts-file-editor hostsman switchhosts# 快速搜索工具scoop install everything# 快速启动工具scoop install wox listary# 快速预览工具scoop install quicklook# 卸载工具scoop install geekuninstaller# 刻录工具scoop install rufus
炫酷工具
# 屏幕显示组合键scoop install carnac
媒体工具
# 视频播放scoop install vlc mpc-be# 视频录制 / 直播scoop install obs-studio
报错解决
Error installing Git (issue when 7-zip is expanding)
