Updated the manuals

This commit is contained in:
Markus Fleschutz
2025-05-12 22:04:02 +02:00
parent b3cdf19f4a
commit 09eb3d1808
651 changed files with 8362 additions and 1405 deletions

View File

@ -2,8 +2,7 @@ The *list-updates.ps1* Script
===========================
This PowerShell script queries the latest available software updates for the
local machine and lists it.
NOTE: Use the script 'install-updates.ps1' to install the listed updates.
local machine and lists it (for installation use 'install-updates.ps1').
Parameters
----------
@ -19,12 +18,13 @@ Example
-------
```powershell
PS> ./list-updates.ps1
Querying Microsoft Store...
Name Id Version Available Source
------------------------------------------------------------------------------
Git Git.Git 2.43.0 2.44.0 winget
Name Id Version Available
----------------------------------------------------------------
Git Git.Git 2.43.0 2.44.0
...
```
@ -45,14 +45,14 @@ Script Content
Lists software updates
.DESCRIPTION
This PowerShell script queries the latest available software updates for the
local machine and lists it.
NOTE: Use the script 'install-updates.ps1' to install the listed updates.
local machine and lists it (for installation use 'install-updates.ps1').
.EXAMPLE
PS> ./list-updates.ps1
⏳ Querying Microsoft Store...
Name Id Version Available Source
------------------------------------------------------------------------------
Git Git.Git 2.43.0 2.44.0 winget
Name Id Version Available
----------------------------------------------------------------
Git Git.Git 2.43.0 2.44.0
...
.LINK
https://github.com/fleschutz/PowerShell
@ -62,21 +62,39 @@ Script Content
try {
if ($IsLinux) {
"⏳ (1/2) Querying package updates..."
& sudo apt update
& sudo apt list --upgradable
"⏳ (2/2) Querying Snap updates..."
& sudo snap refresh --list
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
}
} elseif ($IsMacOS) {
throw "Sorry, MacOS not supported yet"
if (Get-Command brew -ErrorAction SilentlyContinue) {
Write-Host "`n⏳ Querying Homebrew updates..." -foregroundColor green
& brew outdated
}
} else {
Write-Progress "Querying updates from Microsoft Store and winget..."
" "
& winget upgrade --include-unknown
Write-Progress -completed "Done."
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
}
}
" "
"NOTE: Execute script 'install-updates.ps1' to install the listed updates."
"💡 Execute 'install-updates.ps1' to install the listed updates."
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
@ -84,4 +102,4 @@ try {
}
```
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:22)*
*(page generated by convert-ps2md.ps1 as of 05/12/2025 22:02:56)*