List-Updates
Lists available software updates
try {
if (Get-Command apt -ErrorAction SilentlyContinue) {
Write-Host "`n? Querying APT package updates..." -foregroundColor green
& sudo apt update
& sudo apt list --upgradable
}
if (Get-Command snap -ErrorAction SilentlyContinue) {
Write-Host "`n? Querying Snap updates..." -foregroundColor green
& sudo snap refresh --list
}
if (Get-Command brew -ErrorAction SilentlyContinue) {
Write-Host "`n? Querying Homebrew updates..." -foregroundColor green
& brew outdated
}
if (Get-Command winget -ErrorAction SilentlyContinue) {
Write-Host "`n? Querying Microsoft Store..." -foregroundColor green
& winget upgrade --include-unknown --source=msstore
Write-Host "`n? Querying WinGet..." -foregroundColor green
& winget upgrade --include-unknown --source=winget
}
if (Get-Command choco -ErrorAction SilentlyContinue) {
Write-Host "`n? Querying Chocolatey..." -foregroundColor green
& choco outdated
}
if (Get-Command scoop -ErrorAction SilentlyContinue) {
Write-Host "`n? Querying Scoop..." -foregroundColor green
& scoop status
}
" "
"?? Execute 'install-updates.ps1' for installation."
exit 0 # success
} catch {
"?? ERROR: $($Error[0]) (script line $($_.InvocationInfo.ScriptLineNumber))"
exit 1
}This script has no configurable parameters.