Skip to content
← All comparisons

Compare

unattended-upgrades and dnf-automatic vs a Patch Management Tool

What this page says about unattended-upgrades and dnf-automatic comes from its own documentation, checked .

unattended-upgrades on Debian and Ubuntu and dnf-automatic on the Red Hat family install updates on one host, by a timer, with no one watching. They are free and worth turning on. They do not tell you which hosts did not update, which are waiting for a reboot, or which CVEs are still open across the fleet. A patch management tool answers those, and can run alongside them.

Every mainstream distribution ships a way to install updates without a person: unattended-upgrades on Debian and Ubuntu, dnf-automatic on RHEL, Rocky, Alma, Fedora and Amazon Linux 2023. They are free, maintained by the distributions, and for a handful of servers they may be all you need.

The question is what happens at twenty servers, or two hundred. This page describes what the built-in tools do, exactly which options control them, and what a patch management tool such as SysWard (ours) adds on top.

The short version

QuestionBuilt-in automatic updatesA patch management tool
Will security updates get installed?Yes, on each host where it is configured and workingYes, on the schedule you set
Which hosts did not update last night?Check each host’s logs or mailOne list
Which hosts are waiting for a reboot?Check each hostOne list
Are we exposed to a given CVE?Not answeredYes, per host
Can I patch staging before production?Only by giving hosts different timersYes, by group
What was applied, when, on this host?In that host’s logsRecorded centrally

What unattended-upgrades does

It installs updates from the origins you allow, driven by apt-daily.timer and apt-daily-upgrade.timer. On Ubuntu it is installed by default, and Ubuntu’s documentation says automatic installation of security updates is enabled right after installation.

The options that matter, with their shipped defaults on Ubuntu:

OptionDefaultWhat it does
Unattended-Upgrade::Allowed-Originsrelease, security and ESM pocketsWhich repositories it may install from
Unattended-Upgrade::Automatic-Reboot"false"Reboot without confirmation when /var/run/reboot-required exists
Unattended-Upgrade::Automatic-Reboot-Time"now" if unsetWhen that reboot happens
Unattended-Upgrade::MailemptyAddress for a report; needs working mail on the host
Unattended-Upgrade::MailReport"on-change"When to send it
Unattended-Upgrade::Package-BlacklistemptyPackages it must never upgrade
Unattended-Upgrade::Remove-Unused-Dependencies"false"Remove packages no longer needed

What dnf-automatic does

The dnf documentation calls it an alternative command line for dnf upgrade, made to be run from systemd timers or cron. Its behaviour comes from /etc/dnf/automatic.conf:

OptionDefaultWhat it does
apply_updatesFalseInstall the updates, not only download or report them
upgrade_typedefaultsecurity limits it to updates with a security advisory
rebootneverwhen-needed reboots when a kernel or systemd update requires it; when-changed after any upgrade
emit_viaemail, stdio, motdWhere the result is reported
random_sleep0Spread the start time

On RHEL, which timer you enable decides the action (dnf-automatic-notifyonly.timer, -download.timer, -install.timer), and the timer overrides the file.

Where the built-in tools stop

Both are designed around one host. Their own documentation describes local logs, mail, standard output and the message of the day as the places results go. Ubuntu’s page on automatic updates says the feature is not meant to replace fleet management software, and lists staged rollouts among the things larger deployments need.

In practice four gaps appear as a fleet grows:

  1. Silent failure. A broken repository, a held package or a full disk stops updates on one host, and the only evidence is in that host’s log.
  2. Reboots. With the default settings a kernel fix is installed and not running until someone reboots. Nothing lists the hosts in that state.
  3. No answer to “are we exposed?” The tools install what is available. They do not say which CVEs a host is still affected by, or which of those are being exploited.
  4. No staging. Every host takes updates on its own timer. Patching test before production means maintaining different timer settings by hand.

Side by side

unattended-upgrades / dnf-automaticSysWard
ScopeOne host eachThe fleet: Ubuntu, Debian, RHEL, CentOS, Rocky, Alma, SUSE, Amazon Linux
PriceFree, part of the distributionFree for 5 servers; then $1 per server per month
Installs updatesBy timer, from allowed originsBy group, in the windows you schedule
Fleet view of pending updatesNonePer host, always current
Reboot statusA file or exit code on each hostShown per host
CVE exposureNot includedCVEs matched to installed packages, with CISA KEV flags and EPSS
RecordLocal logs and mailPer-host patch history; findings and remediation history exported to CSV

When the built-in tools are enough

  • A few servers that you look at regularly.
  • No requirement to show anyone what was patched and when.
  • Automatic reboots are acceptable, or you reboot on a routine.

Using them together

You do not have to choose. A sensible arrangement:

  1. Leave automatic security updates on. Hosts stay close to current with no effort.
  2. Install the SysWard agent. It reports installed packages and pending updates however the updates were applied, so you see the hosts where automatic updates stopped working and the ones waiting for a reboot.
  3. Schedule the rest. Non-security updates, held packages and the reboots, by group, in a window.
  4. Use the CVE list for the exceptions. When a vulnerability is being exploited, filter to the hosts still affected and patch those first.

If you move patching fully into SysWard instead, disable apt-daily-upgrade.timer or the dnf-automatic install timer on those hosts so two schedulers do not overlap.

Related: how to automate Linux server patching, Ubuntu patch management, Debian patch management and RHEL patching step by step.

Sources

Checked November 28, 2026.

Frequently Asked Questions

Does unattended-upgrades reboot the server automatically?

Not by default. The shipped configuration has Unattended-Upgrade::Automatic-Reboot "false";. Setting it to true reboots without confirmation when /var/run/reboot-required exists after an upgrade, and Unattended-Upgrade::Automatic-Reboot-Time sets the time (the default is "now"). Until a host reboots, an updated kernel is installed but not running.

Does unattended-upgrades install only security updates?

On Ubuntu, by default, yes in practice: the allowed origins are the release pocket, the security pocket and the ESM pockets, with updates, proposed and backports commented out. You can widen or narrow that list in /etc/apt/apt.conf.d/50unattended-upgrades.

How do I make dnf-automatic install security updates only?

Set upgrade_type = security and apply_updates = yes in /etc/dnf/automatic.conf, then enable a timer. The documentation defines security as only updates with an issued security advisory, so it depends on the repository publishing advisories. On RHEL the timer units take precedence over the file: enabling dnf-automatic-install.timer installs updates whatever apply_updates says.

How do I get told what unattended-upgrades or dnf-automatic installed?

Per host, by mail or logs. Unattended-Upgrade::Mail sends a report if the host has a working mail setup, and logs go to /var/log/unattended-upgrades/. dnf-automatic emits to email, stdio or the message of the day through emit_via. Neither collects results from many hosts into one place.

Should I turn off unattended-upgrades if I use a patch management tool?

Not necessarily. Many teams leave it on for security updates so a host is never far behind, and use the tool to see what happened, catch the hosts that failed or need a reboot, and schedule everything else. The thing to avoid is two schedulers fighting over the same maintenance window.

See your own fleet in it

Install the agent on a few servers and compare the result with what you run today. Free for 5 servers, no card.

More comparisons