How can I keep multiple droplets updated?

  • Posted on October 8, 2014
  • AaronAsked by Aaron

With all of the new shell exploits coming out I want to ensure all of my droplets are secure. How can someone automate this process?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

On Ubuntu you can automate system updates with the unattended-upgrades package. The documentation for this can be found here:

On CentOS you can set up automatic updates with the yum-cron package setting up your configuration in /etc/sysconfig/yum-cron

One thing to keep in mind is avoiding automatic updates to your kernel since allowing the kernel within your droplet to be out of sync with the kernel image assigned to your droplet could result in issues.

If you use a debian-based distribution, tools like “cron-apt” can help.