Preparation#
Note: Make sure your current powershell is PowerShell 5 or a newer version.
Install Scoop#
Configure installation location and PATH variable (optional)#
Note: Replace
lzwang
below with your own Windows username
$env:SCOOP='C:\Users\lzwang\scoop'
[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
Install Scoop#
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
Note: You need to restart Windows Terminal for the environment variable to take effect.
Using Scoop#
Install necessary packages#
scoop install git
Add package repositories#
scoop bucket add main
scoop bucket add extras
scoop bucket add nerd-fonts
All available repositories are as follows, refer to Scoop Apps
Common Scoop commands#
# Update scoop and the package list
scoop update
# View the current available repo list
scoop bucket list
## Install software ##
# Install non-global (and disable package cache)
scoop install -k <app>
# Install global (and disable package cache)
sudo scoop install -gk <app>
## Uninstall software ##
# Uninstall non-global software (and delete configuration files)
scoop uninstall -p <app>
# Uninstall global software (and delete configuration files)
sudo scoop uninstall -gp <app>
## Update software ##
# Update all non-global software (and disable package cache)
scoop update -k *
# Update all software (and disable package cache)
sudo scoop update -gk *
## Cleanup ##
# Delete all old versions of non-global software (and delete package cache)
scoop cleanup -k *
# Delete all old versions of software (and delete package cache)
sudo scoop cleanup -gk *
# Clear package cache
scoop cache rm *
Using Aria2 for multi-threaded downloads#
Install aria2
scoop install aria2
Download configuration
Set the maximum number of connections per task to 32, the maximum number of connections per server to 16, and the minimum file chunk size to 1M.
scoop config aria2-split 32
scoop config aria2-max-connection-per-server 16
scoop config aria2-min-split-size 1M
scoop config aria2-warning-enabled false # Disable warnings
Disable multi-threaded downloads
scoop config aria2-enabled false
Install NF (nerd font) fonts#
When installing fonts, it is recommended to install them for all users with administrator privileges. Otherwise, there may be issues with Windows Terminal or VS Code not finding the fonts. If you have already installed them incorrectly, remove the ineffective fonts first and then reinstall them, which should generally take effect.
scoop install sudo
sudo scoop install FiraCode-NF FiraCode-NF-Mono
sudo scoop install Iosevka-NF
Using Scoop to manage packages#
For example, download the curl tool
scoop install curl
Install common packages#
scoop install curl wget sudo vim vimtutor grep touch miniconda3 mpv yt-dlp ffmpeg
References#
- Scoop
- Scoop - The Best Windows Package Manager - P3TERX ZONE
- Windows Terminal Beautification + PowerShell Plugin Configuration - DiaosSama's Blog
- Installing · tonsky/FiraCode Wiki
- GitHub - duzyn/scoop-cn: Scoop application library that Chinese users can use, synchronizing the official library of Scoop daily to accelerate application download speed