How to Update Ubuntu
A step-by-step guide to keeping your Ubuntu system up-to-date.
Step 1 of 5
1
Step 1: Update Package List
First, refresh your local package index to get the latest information about available packages.
sudo apt update
2
Step 2: Upgrade Packages
Now, upgrade all of the installed packages to their latest versions.
sudo apt upgrade -y
3
Step 3: Distribution Upgrade
This command intelligently handles changing dependencies with new versions of packages.
sudo apt dist-upgrade -y
4
Step 4: Remove Unused Packages
Remove packages that were automatically installed to satisfy dependencies and are now no longer needed.
sudo apt autoremove -y
5
Step 5: Clean Up
Finally, clean up the local repository of retrieved package files to free up disk space.
sudo apt clean