sudo apt-get upgrade
installs all updates, not just security updates. I know that I can use Update Manager to select only important security updates, but is there a way to do this from the command line?
Ubuntu – How to install just security updates from the command line
command linepackage-managementSecurityupdates
Best Answer
The package unattended-upgrades provides functionality to install security updates automatically.
You could use this, but instead of configuring the automatic part you could call it manually:
If you want to run it quietly instead:
Note: When you call unattended-upgrade you leave the "s" off the end (on newer versions there is a symlink to avoid this).
This assumes that the package is installed by default, which it probably is. If not, just do:
See also
/usr/share/doc/unattended-upgrades/README.md
.