安裝Scoop
啟動PowerShell更改系統政策
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
指令行安裝Scoop
在powershell中,使用如下兩條指令中的任意一個安裝scoop
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
iwr -useb get.scoop.sh | iex
環境驗證
在Powershell中輸入指令
scoop help
得到如下内容,标示安裝成功環境配置成功
路徑修改
預設情況下,軟體安裝在目前使用者路徑下,例如
C:\Users\Administrator\scoop
,通過指令行修改路徑,前提是確定修改的路徑确實存在,因為指令行是不會因為路徑不存在而報錯的,但是後續再進行安裝其他軟體的時候
PS C:\Users\Administrator> $env:SCOOP='D:\Applications\Scoop'
PS C:\Users\Administrator> [Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
PS C:\Users\Administrator> $env:SCOOP_GLOBAL='D:\GlobalScoopApps'
PS C:\Users\Administrator> [Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')
安裝aria2用于加速下載下傳速度
bucketname | detailed content |
---|---|
main | Default bucket for the most common (mostly CLI) apps |
extras | Apps that don’t fit the main bucket’s criteria |
games | Open source/freeware games and game-related tools |
nerd-fonts | Nerd Fonts |
nirsoft | A subset of the 250 Nirsoft apps |
java | Installers for Oracle Java, OpenJDK, Zulu, ojdkbuild, AdoptOpenJDK, 7、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 |