目录
Scoop 官网: https://scoop.sh
Github 地址: https://github.com/lukesampson/scoop
Scoop 安装
环境需求
- PowerShell 5 +
- .NET Framework 4.5 +
安装
指定安装位置(配置环境变量)
以管理员身份打开PowerShell
$env:SCOOP='D:\Applications\Scoop'
[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
$env:SCOOP_GLOBAL='F:\GlobalScoopApps'
[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')
安装Scoop
首先确保你能访问 raw.githubusercontent.com
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
# 或者
iwr -useb get.scoop.sh | iex
Scoop 使用
Scoop官方维护的仓库
- main - 默认仓库
- extras - 默认仓库的补充超级强大
- games - 看名字就知道啦
- nerd-fonts - Nerd Fonts
- nirsoft - A subset of the 250 Nirsoft apps
- java - Installers for Oracle Java, OpenJDK, Zulu, ojdkbuild, AdoptOpenJDK, Amazon Corretto, BellSoft Liberica & SapMachine
- jetbrains - Installers for all JetBrains utilities and IDEs
- nonportable - Non-portable apps (may require UAC)
- php - Installers for most versions of PHP
- versions - Alternative versions of apps found in other buckets
可以直接通过scoop bucket add <repo_name>
安装
由于某些原因,每次更新仓库的时间奇慢,所以还是换为国内镜像仓库来增加使用体验
镜像仓库
-
更多的可以在CSDN GitHub加速计划上找到
Scoop仓库换为国内仓库
安装git(如果你的电脑有git可以跳过)
scoop install git
删除原有仓库
scoop bucket list
scoop bucket rm main
添加镜像仓库
# main
scoop bucket add main https://codechina.csdn.net/mirrors/ScoopInstaller/Main.git
# extras
scoop bucket add extras https://codechina.csdn.net/mirrors/lukesampson/scoop-extras.git
!!! 别忘了更新一下
scoop update
使用Scoop安装常用软件
scoop install 7zip aria2 python vscode typora vlc sumatrapdf
最后,愉快的使用scoop吧~
安装指定版本的软件
可以在软件名字后面指定完整的版本号
scoop install python@3.7.8