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-yesAutomatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively.
--with-new-pkgsAllow 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-upgradeDo not install new packages; only upgrade existing ones.
Examples
Upgrade all currently installed packages.
Upgrade all packages and automatically say yes to prompts.