What does `sudo apt upgrade` do?

QuestionsQuestions8 SkillsProYour First Linux LabNov, 10 2025
0141

The command sudo apt upgrade is used in Debian-based Linux distributions to upgrade installed packages on your system. Here's a brief explanation:

  • sudo: Runs the command with superuser (administrator) privileges, necessary for making changes to system packages.
  • apt: The package management tool used to manage software packages.
  • upgrade: This command upgrades all installed packages to their latest versions based on the information retrieved from the package index (which you updated with sudo apt update).

When you run sudo apt upgrade, it will:

  1. Check for newer versions of installed packages.
  2. Download and install the updates for those packages.
  3. Keep the current configuration files of the packages.

If you want to upgrade packages and also remove obsolete packages or install new dependencies, you can use:

sudo apt full-upgrade

This command is more comprehensive and handles changes in dependencies more effectively. Let me know if you have any more questions!

0 Comments

no data
Be the first to share your comment!