winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Allow wildcard/regex for removal and install of packages

Open rwiesbach opened this issue 2 years ago • 3 comments

Description of the new feature / enhancement

loosely related to #2188 #2014, wildcard or even regex should be available not only for search und upgrade (the two issues mentioned) but also for installation and removal.

Proposed technical implementation details

winget should first list the matches and then ask whether to continue or not. There could be a switch to skip asking the user like /force or similar.

rwiesbach avatar Mar 30 '23 14:03 rwiesbach

This functionality, and #2014, would greatly benefit the Microsoft.Gaming.GDK package with our SemVer format so that customers can get the latest release of an edition family and ignore the third part of our version number which is the build number.

MattHyman avatar Nov 01 '24 17:11 MattHyman

Hi, any interest in implementing this?

It's make me malding when everytime I want to update something specifically from Microsoft, it has to be

winget list | Select-String -Pattern "Microsoft" | ForEach-Object { winget upgrade --id $_.Line.Split()[0] }

groutoutlook avatar May 31 '25 02:05 groutoutlook