Updating and Upgrading Packages on Debian

Debian's package manager (APT) is a powerful, flexible tool, and it makes upgrading and updating installed packages straightforward. Here's the full walkthrough.

  1. First, refresh the local package list:
    sudo apt update
  2. Upgrade the packages
    Then upgrade everything installed on the system with:
    sudo apt upgrade

This command checks every package on the system for available updates, prompts you to install them, and waits for you to type "Y" to confirm.

If some packages haven't been updated in a long time — a year or more, say — running the command above may report dependency conflicts. In that case, upgrade everything with:
sudo apt full-upgrade

Note: after a full-upgrade, the system may need a reboot.

  1. Upgrade the kernel
    The steps are:
    3.1 Install the kernel: run the command below (you can check available kernel versions in a terminal first):
    sudo apt install linux-image-amd64
    3.2 Update GRUB: refresh the bootloader with:
    sudo update-grub

After those commands, the system detects and configures the newly installed kernel automatically. Reboot and you're done.

That completes the update and upgrade of your Debian system.

Leave a Comment

Comments No Comments

Table of Contents