Skip to content
HxHippy

apt upgrade

Upgrade installed packages to their newest versions.

Overview

Installs the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed.

Syntax

sudo apt upgrade [options]

Common Options

-y, --yes, --assume-yes

Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively.

--with-new-pkgs

Allow installing new packages when used in conjunction with upgrade. This is useful if the update of a package requires a new dependency to be installed.

--only-upgrade

Do not install new packages; only upgrade existing ones.

Examples

$ sudo apt upgrade

Upgrade all currently installed packages.

$ sudo apt upgrade -y

Upgrade all packages and automatically say yes to prompts.

aptpackageupgradeupdatesystem update