microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.2k stars 1.45k forks source link

show if package is already installed when searching #2237

Open calendulish opened 2 years ago

calendulish commented 2 years ago

Description of the new feature / enhancement

when I run winget search <package> I would like to see if the match packages are already installed or not

Proposed technical implementation details

No response

denelon commented 2 years ago

I'll keep the feature ask, but I wanted to let you know you can winget list <package> to see if it's installed as well.

calendulish commented 2 years ago

I'll keep the feature ask, but I wanted to let you know you can winget list <package> to see if it's installed as well.

Thank you, it'll do for now.

I still think that information should be shown at search because all the other package managers that I've used has that so I never though about use winget list for that.

Another reason is if I'm using an unknown system and want to manage a specific software version (lets say edge beta), I will need:

  1. run winget list <package> to see what is already installed
  2. run winget search edge to see what is available to install
  3. run winget install Microsoft.Edge.Beta after make sure everything is as it should and knowing the right package name

Obvious it's a well known package and 1 and 2 could be skipped, but what if it's a third party one with unknown package name and versions? If the feature are implemented it could be simplified to:

  1. winget seach edge
  2. winget install Microsoft.Edge.Beta

We are saving 1 step without any side effects