Skip to content

Instantly share code, notes, and snippets.

@uyriq
Created October 21, 2022 15:41
Show Gist options
  • Save uyriq/bfd66ab7d42a455a3cc2c175b7b818ef to your computer and use it in GitHub Desktop.
Save uyriq/bfd66ab7d42a455a3cc2c175b7b818ef to your computer and use it in GitHub Desktop.
a powershell oneliner way to upgrade all upgradeable packages with winget
$pattern = "\b[A-z]+\.[A-z]+"; winget upgrade --include-unknown |Select-String -Pattern $pattern -All | % { $_.Matches } | % { winget upgrade $_.Value }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment