This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Description: Uses apt to list all available system and third-party software updates. | |
| apt list --upgradable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Description: Checks if a major OS upgrade is available on Ubuntu. | |
| do-release-upgrade -c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Description: Uses brew to list all available third-party software updates. | |
| brew outdated --json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Description: Uses softwareupdate to list all available system (os, security, safari and firmware) updates. | |
| softwareupdate --list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Description: Uses winget to list all available software updates, including packages with unknown versions. | |
| winget upgrade --include-unknown |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Description: Queries the Windows Update Agent (WUA) API to list all updates that are available for installation. | |
| # Create an Update Session COM object (entry point to Windows Update API) | |
| $Session = New-Object -ComObject Microsoft.Update.Session | |
| # Create an UpdateSearcher to query for available updates | |
| $Searcher = $Session.CreateUpdateSearcher() | |
| # Search for updates where IsInstalled = 0 (i.e., not yet installed) | |
| $SearchResult = $Searcher.Search("IsInstalled=0") |