Unattended upgrades vs manual patching is the choice every VPS owner faces sooner or later. Patch too slowly and a known vulnerability stays open on a server reachable from the whole internet. Patch carelessly and a routine update takes down the site you were trying to protect. Both have bitten people running a single live VPS with no staging environment and no one on call.
Neither approach wins on its own. The setup that breaks least is a split: let the system install security patches by itself, and keep everything else in your own hands. Here is why that split works, what actually breaks with each method, and how to set it up on Ubuntu.
Unattended Upgrades vs Manual Patching: How Each One Works
Unattended upgrades is a tool, not a philosophy. On Ubuntu and Debian it runs on a schedule, usually daily, and installs package updates without asking you. By default it is often set to install only security updates, which is the part that matters most. You can tune which repositories it pulls from, whether it removes old kernels, and whether it reboots the machine when a new kernel needs one.
Manual patching means you log in, run apt update and apt upgrade yourself, read what is about to change, and decide when it happens. You see the package list, you notice when a major version is about to replace a minor one, and you can stop before something risky goes in. The cost is that it only happens when you remember to do it, and humans forget. A server patched “when I get around to it” often goes weeks between updates.
If you want the automatic route, start with a proper guide to set up automatic security updates on Ubuntu so the tool is configured to pull security fixes only, not every package in the archive.
What unattended upgrades actually installs
The key detail is scope. A well-configured setup installs security updates from the security repository and leaves the rest alone. That is a narrow, predictable stream of packages: fixes for vulnerabilities, usually small, usually backwards compatible. The trouble starts when people widen it to all updates, which pulls in feature changes and major version bumps that were never meant to land without a human looking at them first.
Unattended upgrades can also reboot the machine automatically after a kernel update. On a live VPS that means your server can restart at 3 a.m. because a kernel shipped, and if a service fails to come back cleanly, nobody notices until morning. Keep automatic reboots off unless you have monitoring that will wake you up.
What manual patching looks like in practice
A manual patch session is simple: check for updates, read the list, install, then check that the services still answer. The value is not the typing, it is the pause. You see that nginx is about to be upgraded, or that a PHP version change is queued, and you decide whether today is a good day for that. You can also pick a low-traffic window instead of letting the package manager pick one for you.
What Breaks With Each Approach
Automatic updates break things in specific, repeatable ways. The most common is a service restart. When a package update restarts a service, the new version reads the old config file, and most of the time that is fine. Sometimes it is not. A config option that was deprecated two releases ago gets removed, the service refuses to start, and the site goes down until someone logs in and fixes it.
Kernel updates are the second classic failure. The new kernel installs fine, but the server needs a reboot to use it, and the old kernel keeps running until then. If automatic reboots are on, the reboot happens on the package manager’s schedule.
Manual patching breaks differently. The main failure is the one nobody admits: patches that never happen. The other is rushing it: running a full upgrade at noon on a Friday because you finally remembered, without checking the list, is how a live site ends up with a broken PHP version before a busy afternoon.
The Reboot Problem Nobody Plans For
Every patching strategy has to answer one question: when does the server reboot? Kernel updates and some library updates only take effect after a restart, and on a VPS a reboot is a real event. Services start in order, databases before the web server, and anything in memory is gone.
With unattended upgrades, the reboot either happens automatically at a time you did not choose, or it never happens and the kernel patch sits installed but inactive for months. With manual patching, you choose the moment, but you have to actually do it. The fix is the same either way: schedule reboots deliberately, in a low-traffic window, and check the services afterwards. A planned reboot is maintenance. A surprise reboot is an outage.
Before any update that might need a reboot, take a snapshot. Our guide on how to schedule VPS snapshots before every major update shows how to make that automatic, so there is always a known-good state to return to.
Unattended Upgrades vs Manual Patching at a Glance
| Factor | Unattended upgrades | Manual patching |
|---|---|---|
| Security fix speed | Fast, usually within a day of release | As fast as your routine, often slower |
| Risk of surprise breakage | Higher, no human reviews the list | Lower, you see every change first |
| Reboot timing | Automatic or never, depending on config | Chosen by you |
| Major version changes | Dangerous if scope is too wide | Safe, you approve them |
The Setup That Breaks Least: Automatic Security, Manual Everything Else
The middle path matches the risk to the method. Security updates are small, frequent, and time-sensitive, which is exactly what automation is good at. Feature updates and major version changes are larger, rarer, and benefit from a human reading the changelog, which is exactly what manual patching is good at.
Set it up like this. Configure unattended upgrades to install security updates only, with automatic reboots disabled and old kernels cleaned up automatically so the disk does not fill with them. Then set a weekly or fortnightly reminder to log in and handle the rest: regular updates, distribution upgrades, and pinned packages.
That weekly session is also when you check the logs for failed unattended runs. A failed security update nobody notices is no better than never installing it.
When Manual Patching Wins Outright
Some servers should never update themselves. If your VPS runs a stack with tight version requirements, a custom-compiled module, or a database that is sensitive to minor version changes, automatic updates are a risk you do not need. The same goes for a server running one critical application where downtime costs real money. On those machines, patch manually, during a window you control, with a snapshot taken first and a rollback plan you have actually tested.
Testing the rollback matters more than testing the update. A backup you have never restored is a hope, not a plan, so make sure you know how to test your VPS backup by restoring it before you actually need it. If the restore takes an hour and you only find that out during an outage, the backup did not save you.
For servers where you do want to test updates before they touch production, the safest option is a copy. Our guide on how to clone a VPS server for testing before a big change walks through making a disposable twin of your server so a risky upgrade can fail somewhere harmless.
A Patching Routine That Works on a Live VPS
- Enable automatic security updates using the apt unattended-upgrades package, scoped to security updates only, with automatic reboots off.
- Set up snapshots before updates so a bad patch can be rolled back in minutes instead of hours.
- Pick a weekly patch window and keep it. Same day, same rough time, so it becomes a habit instead of a chore you keep postponing.
- In that window, run the regular updates by hand, read the package list, and reboot if a kernel update is waiting.
- After every patch session, check that the site loads, the database answers, and the services you care about are running. Do not assume a clean upgrade output means a healthy server.
- Once a month, review what the automatic updater installed and whether anything failed, and check disk space, since old kernels and package caches grow quietly.
The risks of patching live VPS instances are manageable once the timing is yours and the rollback is real. Automatic security updates close the window where vulnerabilities are public and your server is still unpatched. Manual handling of everything else keeps big changes under your eyes. Together they cover each other’s weak spots, and that is what keeps a live VPS up.