- See which updates are waiting
softwareupdate --list - Install them allNeeds sudo
sudo softwareupdate --install --all --restartYour Mac restarts by itself if an update needs it. Save your work first.
Check it worked
- Check your macOS version
sw_vers
- Download the list of updates and install themNeeds sudo
sudo apt update && sudo apt full-upgrade -y - Remove packages nothing needs any moreNeeds sudo
sudo apt autoremove -y - Restart if an update asks for itNeeds sudo
[ -f /var/run/reboot-required ] && sudo rebootNothing happens if no restart is needed.
Check it worked
- Check your Ubuntu version
cat /etc/os-release
- Add the Windows Update module to PowerShell
Install-Module PSWindowsUpdate -Scope CurrentUser -ForceIf it asks to install the NuGet provider, type Y.
- Install every updateRun as administrator
Get-WindowsUpdate -Install -AcceptAll -AutoRebootYour PC restarts by itself if an update needs it. Save your work first.
Check it worked
- Check your Windows version
Get-ComputerInfo -Property OsName, OsVersion, OsBuildNumber