Skip to content

Instantly share code, notes, and snippets.

@mmguero
Created May 6, 2025 18:59
Show Gist options
  • Save mmguero/9221ee690de35b85c7f9971e89c9a91f to your computer and use it in GitHub Desktop.
Save mmguero/9221ee690de35b85c7f9971e89c9a91f to your computer and use it in GitHub Desktop.
scoop update all ignoring failures
scoop status | ForEach-Object {
if ($_ -match '^(@{Name=)?(\S+?);?\s+(\S+)\s+(\S+)\s+(.*)') {
$name = $matches[2]
$installedVersion = $matches[3]
$latestVersion = $matches[4]
if ($installedVersion -ne $latestVersion) {
try {
scoop update $name
} catch {
Write-Host "Failed to update $name" -ForegroundColor Red
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment