winget Cheatsheet
A quick overview of winget
commands to help manage packages on a Windows machine.
See what winget
can do:
winget --help
Installing apps
Search for available apps:
winget search PowerShell
Install an app using the winget source:
winget install --name PowerShell --source winget
Upgrading apps
See apps that winget can upgrade:
winget list --upgrade-available
Upgrade app by name:
winget upgrade --name XXXX
Upgrade app by ID:
winget upgrade --id XXXX
Upgrade from winget source:
winget upgrade --id XXXX --source winget
PowerShell 7 Management
Here are the steps to upgrade PowerShell to the latest version:
- Open a non-PowerShell 7 terminal with admin priveleges
- Uninstall current version:
winget install --Name PowerShell --source winget
- Install latest version:
winget install --Name PowerShell --source winget