How can I install just security updates from the command line?

Michael Crenshaw

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?

blueyed

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:

sudo unattended-upgrade -d --dry-run
sudo unattended-upgrade -d # Idem --debug

If you want to run it quietly instead:

sudo unattended-upgrade

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:

sudo apt install unattended-upgrades

See also /usr/share/doc/unattended-upgrades/README.md.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I install updates and shut down from the command line?

From Dev

How do I check only security updates from the command-line?

From Dev

How do I check only security updates from the command-line?

From Dev

How can I search and install Windows Updates through the command-line?

From Dev

How can I install Qt 5.2.1 from the command line in Cygwin?

From Dev

How can I check for Visual Studio updates via the command line?

From Dev

How can I check for Visual Studio updates via the command line?

From Dev

Can I install all Adobe updates and just reboot at the end?

From Dev

How can I determine which fonts are installed from the command line, and what is the easiest way to install more?

From Dev

How can I get a list of all repositories and PPAs from the command line into an install script?

From Dev

How can I create a setup that installed from command line in install shield 2012

From Dev

How can I determine which fonts are installed from the command line, and what is the easiest way to install more?

From Dev

How can I get a list of all repositories and PPAs from the command line into an install script?

From Dev

How can I wipe my hard drive from the Debian command line to install Ubuntu to a blank hard drive?

From Dev

How can I install older PhoneGap versions using the command line?

From Dev

How can I install one language by command-line

From Dev

How can I install one language by command-line

From Dev

Can you install unstable packages just with command-line?

From Dev

How do I install the latest version of cmake from the command line?

From Dev

How to I install Glassfish on Ubuntu from the command line?

From Dev

How do I install Chromium from the command line?

From Dev

How to I install Glassfish on Ubuntu from the command line?

From Dev

How do I install Chromium from the command line?

From Dev

How do I install the latest version of cmake from the command line?

From Dev

How do I Install the latest Virtual Box from the command line?

From Dev

How do I install NetDrive from a Linux command line (terminal)?

From Dev

How can I write to the second line of a file from the command line?

From Dev

How to only install security updates

From Dev

How can I shut down a RedShift cluster from the command line?

Related Related

  1. 1

    How can I install updates and shut down from the command line?

  2. 2

    How do I check only security updates from the command-line?

  3. 3

    How do I check only security updates from the command-line?

  4. 4

    How can I search and install Windows Updates through the command-line?

  5. 5

    How can I install Qt 5.2.1 from the command line in Cygwin?

  6. 6

    How can I check for Visual Studio updates via the command line?

  7. 7

    How can I check for Visual Studio updates via the command line?

  8. 8

    Can I install all Adobe updates and just reboot at the end?

  9. 9

    How can I determine which fonts are installed from the command line, and what is the easiest way to install more?

  10. 10

    How can I get a list of all repositories and PPAs from the command line into an install script?

  11. 11

    How can I create a setup that installed from command line in install shield 2012

  12. 12

    How can I determine which fonts are installed from the command line, and what is the easiest way to install more?

  13. 13

    How can I get a list of all repositories and PPAs from the command line into an install script?

  14. 14

    How can I wipe my hard drive from the Debian command line to install Ubuntu to a blank hard drive?

  15. 15

    How can I install older PhoneGap versions using the command line?

  16. 16

    How can I install one language by command-line

  17. 17

    How can I install one language by command-line

  18. 18

    Can you install unstable packages just with command-line?

  19. 19

    How do I install the latest version of cmake from the command line?

  20. 20

    How to I install Glassfish on Ubuntu from the command line?

  21. 21

    How do I install Chromium from the command line?

  22. 22

    How to I install Glassfish on Ubuntu from the command line?

  23. 23

    How do I install Chromium from the command line?

  24. 24

    How do I install the latest version of cmake from the command line?

  25. 25

    How do I Install the latest Virtual Box from the command line?

  26. 26

    How do I install NetDrive from a Linux command line (terminal)?

  27. 27

    How can I write to the second line of a file from the command line?

  28. 28

    How to only install security updates

  29. 29

    How can I shut down a RedShift cluster from the command line?

HotTag

Archive