The Update.ps1 script updates all components across multiple package managers and sources.
Purpose: Unified multi-source package updates
Features:
- ✅ Update winget packages
- ✅ Update PowerShell modules
- ✅ Update Scoop packages (if installed)
- ✅ Update Yazi plugins and themes
- ✅ Sync git-managed configurations
- ✅ Intelligent failure recovery
# Recommended: Update all components
.\Scripts\Update.ps1This updates:
- All winget packages
- All PowerShell modules
- Scoop packages (if installed)
- Yazi plugins and themes
- Yazi configuration repository
Update only winget packages:
.\Scripts\Update.ps1 -WingetOnlyUpdate only PowerShell modules:
.\Scripts\Update.ps1 -ModulesOnlyView detailed failure information:
.\Scripts\Update.ps1 -ShowDetailsClear stored failure logs:
.\Scripts\Update.ps1 -ClearLogsUpdates all winget-installed tools:
🔹 Updating winget packages...
→ Updating oh-my-posh...
✓ oh-my-posh updated to 19.14.2
→ Updating Yazi...
⊘ Yazi already at latest version (0.2.4)
Updates all PSGallery modules:
🔹 Updating PowerShell modules...
→ Updating PSFzf...
✓ PSFzf updated to 2.5.22
→ Updating Terminal-Icons...
✓ Terminal-Icons updated
If Scoop is installed:
🔹 Updating Scoop packages...
→ Running scoop update...
✓ Scoop packages updated
Updates Yazi components:
🔹 Updating Yazi ecosystem...
→ Updating Yazi plugins...
✓ Plugins updated via ya pkg
→ Syncing configuration repository...
✓ Configuration synchronized
| Source | Components | Command |
|---|---|---|
| Winget | oh-my-posh, Yazi, fzf, zoxide, etc. | winget upgrade |
| PSGallery | PSFzf, Terminal-Icons, posh-git, etc. | Update-Module |
| Scoop | resvg, optional tools | scoop update |
| Yazi pkg | Plugins, themes | ya pkg update |
| Git | Yazi config, DevKit | git pull |
Recommended frequency:
- Weekly: Run Update.ps1
- Monthly: Review
-ShowDetailsfor issues - After announcements: When new features are released
# 1. Update components
.\Scripts\Update.ps1
# 2. If failures occurred, check details
.\Scripts\Update.ps1 -ShowDetails
# 3. Fix issues based on suggestions
# 4. Re-run update
.\Scripts\Update.ps1
# 5. Validate environment
.\Scripts\Test.ps1
# 6. Restart PowerShell
exit.\Scripts\Update.ps1 -ShowDetailsError: "Module is in use"
Solution:
# Close all PowerShell windows
# Reopen and run update
.\Scripts\Update.ps1Error: "Download timeout"
Solution:
- Check internet connection
- Try again later
- Check
-ShowDetailsfor specific component
Error: "Local changes would be overwritten"
Solution:
# Stash changes
cd $env:APPDATA\yazi
git stash
git pull
git stash popUpdate-Module -Name PSFzf -Forcewinget upgrade --id sxyazi.yazi