Updating

Chester Wyke October 19, 2023 Updated: April 15, 2025 #debian

Update and Upgrade

Useful when running on servers

sudo apt update && sudo apt upgrade

Note on difference between apt and apt-get

Based on this page on IT’S FOSS the apt versions of these are probably better.

Update package list

sudo apt update

Update packages and kernel

Source: https://www.cyberciti.biz/faq/upgrade-update-ubuntu-using-terminal/

Tested and this command did do the update for the pending kernel update.

sudo apt upgrade

Recommended command for kernel update

Tested and just sudo apt upgrade also updated the kernel

Sources:

sudo apt full-upgrade