Updating new Ubuntu droplet: security updates

Posted July 17, 2014 7.4k views

When I ssh into my droplet. Ubuntu tell me I have
66 packages can be updated.
31 updates are security updates.

This is a new Droplet (and I’m new to Ubuntu) … is there a how to or best practices for this? I’m most concerned about the security updates..

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

There most likely will be a restart required for a few of them. Shutdown & snapshot then run this:

sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo reboot

Note: That command will automatically say yes to all updates and will restart one it completes updates.
If something breaks or you are having issues, restore back to the snapshot.

Little script I wrote that makes it easier ;D


curl -s | bash