Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With Winget command, how do you list only upgradeable apps

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
like image 616
David Hatch Avatar asked Jun 16 '21 06:06

David Hatch


People also ask

What is the command used in command prompt to check the list of applications available installed in the asset?

The list command of the winget tool displays a list of the applications currently installed on your computer.

Where are Winget packages installed?

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.

How do I run a Winget remotely?

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.


1 Answers

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
like image 101
David Hatch Avatar answered Oct 22 '22 13:10

David Hatch