I know that winget has many specifics, and I will not pretend I understand all the implications, but I think you can take plenty of inspiration from Chocolatey because they've been there I think multiple packages support for upgrade/ install/ uninstall is immensely useful, and coming from Chocolatey world, this missing feature is one of the main reasons I still didn't completely switch to winget I just want to voice my support for this and add my insignificant chaotic pieces to the debate ) Winget upgrade -q (Dropbox.Dropbox)|(Microsoft.dotnetRuntime.3-圆4) Maybe that can be expanded to support standard RegEx matching? Then like davvolun said, it could be used to specify options (or even fancier matches), such as Maybe the -query parameter would help for this? As mentioned, does -q support any kind of advanced pattern matching that could be used to pull a list of items that aren't all simply variants of the same substring? Based on the docs here, it doesn't look like it. , and was very surprised that that did not work. Winget upgrade Dropbox.Dropbox Microsoft.dotnetRuntime.3-圆4 So, to only deal with the installs that work, without doing multiple commands, I wanted to just do something like Microsoft.EdgeWebView2Runtime and Microsoft.dotnet), so doing -all is annoying because it tries to upgrade them and I get UAC and other user prompts, and then still have them in the list anyway. upgrade -all is annoying right now, because there's numerous packages that fail/don't upgrade properly (e.g. I was just coming to post this suggestion. Can I do something like winget upgrade -q "PackageA|PackageB|PackageC" or possibly winget upgrade -all -query '^ (assuming ^ would mean negation in the query)? I'm not really seeing a full description of the -query parameters. Not sure if any other package managers have that kind of thing though.Īs a workaround, I'm wondering if query has support to do this, or if I can write a simple script to take the results from winget upgrade default usage and run upgrade one at a time - is there a way to just get the Id column output from winget upgrade? So I might run something like winget lock -id '' and then winget upgrade -all would skip over that particular package. I'd like to do winget upgrade -all -not -id '" or something to that effect, but at least doing winget upgrade PackageA PackageB PackageC is better than manually running them one at a time.Ī second option I could see is to lock my package. Specifically, I need to keep NodeJS LTS at a lower version because we haven't upgraded from 14 LTS to the latest 16 LTS yet, and won't be for some time (16 doesn't even enter Maintenance only mode until September, so we won't look at updating to it until then).
0 Comments
Leave a Reply. |