To check on which Debian packages may need updating and update all for which upgrades are available on an Ubuntu Linux system, you can take the following steps:
-
Update the package lists
Open a terminal window and fetch the latest information about available updates from the remote repositories:
sudo apt update -
List packages with available updates
List every installed package that has a newer version ready to install:
apt list --upgradable -
Simulate the update (optional)
Perform a dry run to see exactly which packages will be upgraded or installed without making any actual system changes:
sudo apt upgrade -s -
Apply the updates
Upgrade all available packages to their latest versions:
sudo apt upgradeTo automatically perform distribution upgrades that may add or remove dependencies to complete the update, use
sudo apt dist-upgradeorsudo apt full-upgradeinstead.
