Introduction
Keeping your Ubuntu system updated is essential for security and stability. This guide covers the recommended way to update packages on Ubuntu 24.04 LTS.
Step 1: Update the package list
Run:
sudo apt update
Step 2: Upgrade installed packages
Run:
sudo apt upgrade -y
The -y flag automatically confirms prompts.
Step 3: Full system upgrade
Run:
sudo apt full-upgrade -y
Best practices
- Always run
sudo apt updatebefore upgrading. - Reboot after major updates with
sudo reboot. - Check pending upgrades with
apt list --upgradable.