There doesn't seem to be a built in option to filter by available upgrade or source.
I have tried this but it still lists everything:
winget list --source winget
The list command of the winget tool displays a list of the applications currently installed on your computer.
Open source details. The winget tool is open source software available on GitHub in the repo https://github.com/microsoft/winget-cli/. The source for building the client is located in the src folder.
In short, Winget must be run by a user in an interactive console. As I mentioned earlier, you cannot run Winget in a remote session using Invoke-Command or SSH. This also means you can't run Winget in a PowerShell background job.
I found a solution that works. You use the upgrade
command with no arguments instead of the list
command. This wasn't clear to me in the documentation but works perfectly.
winget upgrade
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With