Updating

    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