Linux

dnf-automatic on RHEL, Rocky, and Alma: Security Updates, Reboots

The Back Room Tech Staff · Edited by Aseem Kishore
22 min read

The Back Room Tech is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

When dnf-automatic “does nothing,” the cause is usually the systemd timer you enabled, not your config file. Three of the four dnf-automatic timer units override apply_updates and download_updates in /etc/dnf/automatic.conf. Only the plain dnf-automatic.timer reads those two values as written. With the file as RHEL ships it (download_updates = yes, apply_updates = no), that plain timer downloads updates but doesn’t install them until you change the file. Edit the file all you want. If the wrong timer is active, your edits won’t change what happens at 2 a.m.

This guide sets up security-only unattended patching on RHEL-family hosts at major versions 9 and 10, including Rocky Linux and AlmaLinux. The timer units, automatic.conf layout, and security-update workflow described here match Red Hat’s RHEL 9 dnf-automatic documentation. On RHEL 10, Rocky, or Alma builds, confirm unit names, shipped defaults, and available options with systemctl cat and man dnf-automatic before you copy one config across the fleet. The steps follow Red Hat’s documentation and the dnf-automatic(8) man page rather than a lab run on every listed release, so validate them on one canary per distro and major version instead of assuming identical package names, defaults, and unit contents everywhere.

The focus is the dnf-automatic package and systemd timers shipped with those releases, not Fedora’s separate dnf5 automatic plugin and unit names. You’ll pick the right timer, check advisory metadata, set a reboot policy, and pin a maintenance window. Then you’ll fence off critical packages and build an audit trail. Budget 30-45 minutes per host for the first setup, then copy the config to the rest of your fleet.

Quick Reference: dnf-automatic Decisions at a Glance

ScenarioRecommended setup
Stateless app servers behind a load balancerupgrade_type = security, install timer, reboot = when-needed
Homelab or small-business box with no on-call adminupgrade_type = security, install timer, reboot = when-needed in a night window
Database primary, clustered node with quorum, or version-pinned app stackNotify-only or download-only timer, manual install window
Compliance environment that must prove patch SLAsAny of the above plus persistent journal and dnf history exports
Timer active but nothing installsCheck which timer is enabled before touching automatic.conf
upgrade_type = security finds zero updatesCheck repo advisory metadata with dnf updateinfo list --security

When Unattended Security Patching Is Safe (and When It Isn’t)

Unattended installs suit hosts you can lose without a postmortem. A fleet of horizontally scaled app servers is the textbook case. If a patch breaks one node, the load balancer drains it and you rebuild. A homelab server is also a good fit. A CVE patched on schedule beats a CVE patched whenever you remember to log in.

The risky hosts are the ones where a surprise reboot or a dependency bump has a blast radius:

  • Database primaries: an unplanned reboot means an unplanned failover, or an outage if there’s no replica.
  • Clustered nodes with quorum: two nodes rebooting in the same window can drop the cluster below quorum.
  • Pinned application stacks: a “security” update to a runtime library can still change behavior your app depends on.

For those hosts, use notify-only or download-only mode and install by hand. You still get the alert. You keep the timing.

Tip: If you run Ubuntu alongside your RHEL-family boxes, our Ubuntu APT automatic updates audit guide covers the unattended-upgrades equivalent. The concepts map closely, though the config key names and syntax differ.

Prerequisites for dnf-automatic Security-Only Updates

RequirementDetails
OSRHEL 9 or 10, Rocky Linux 9 or 10, AlmaLinux 9 or 10
Package managerdnf-automatic with the host’s dnf stack (confirm with rpm -q dnf-automatic and man dnf-automatic)
Accesssudo or root on the target host
RepositoriesEnabled repos that publish updateinfo (security advisory) metadata
Test hostA non-production VM or spare box with the same repos and package set
Mail (optional)A working local MTA such as Postfix if you want email reports

Two items deserve more than a table row.

Security metadata. upgrade_type = security only finds packages linked to a published advisory. Red Hat’s repos publish that metadata. Rocky Linux and AlmaLinux publish errata for their BaseOS and AppStream repos too. How complete that coverage is compared with upstream RHEL comes up often in community discussion. Verify it on your own host before you trust it. Third-party repos vary even more. Step 4 shows how to check.

A test host. Run the full setup on a canary first. A cheap mini PC or a spare VM on your hypervisor is fine, as long as it mirrors production repos. Let it go through at least one scheduled run before you roll the config out.

How to Install and Configure dnf-automatic for Security Updates

Step 1: Confirm your DNF generation, then install dnf-automatic

This guide covers the DNF 4 dnf-automatic package, its /etc/dnf/automatic.conf file, and the dnf-automatic*.timer units. Red Hat’s RHEL 10 documentation still uses those names, but DNF 5 builds such as current Fedora use a different package (dnf5-plugin-automatic), config location, and dnf5-automatic.timer unit. Check which generation your host runs before you install anything:

dnf --version
rpm -q dnf dnf5

If dnf --version reports 4.x and dnf5 isn’t installed, follow the rest of this guide. If it reports 5.x, stop here and use your distribution’s DNF 5 automatic documentation instead, because the package, file paths, and unit names below won’t exist.

sudo dnf install dnf-automatic

On standard installs the package normally comes from the distribution’s own BaseOS or AppStream repository, so you usually don’t need a third-party repo. On RHEL, the host must be registered with those repositories enabled. If dnf install can’t find it, run dnf repolist and dnf provides dnf-automatic to see which enabled repo, if any, offers it.

Confirm what landed:

rpm -q dnf-automatic

Expected output is a single package string such as dnf-automatic-4.x.y-...noarch. Version numbers differ between RHEL, Rocky, and Alma, and between major releases. Read yours from the host rather than assuming one.

Check that the man page on this host documents every option you plan to use:

man dnf-automatic

The options below follow the dnf-automatic(8) man page. If your local man page doesn’t list reboot or reboot_command, your build predates those options. Skip to the manual-window approach in Step 7.

Step 2: Walk through every section of /etc/dnf/automatic.conf

Open the file with sudoedit so your editor doesn’t run as root:

sudoedit /etc/dnf/automatic.conf
/etc/dnf/automatic.conf on Rocky Linux 9 with upgrade_type, reboot and exclude lines highlighted

The file has five sections you’ll care about.

[commands] decides what a run does.

# /etc/dnf/automatic.conf
[commands]
# default = all available updates; security = only packages tied to an advisory
upgrade_type = security
# dnf-automatic's own random delay (seconds) before downloading; the systemd
# timer's RandomizedDelaySec (Step 8) is separate and still applies
random_sleep = 0
# Ignored by the -install, -download, and -notifyonly timers (see Step 3)
download_updates = yes
apply_updates = yes
# never | when-changed | when-needed (covered in Step 6)
reboot = never
reboot_command = "shutdown -r +5 'Rebooting after applying package updates'"

[emitters] decides where the run report goes. emit_via takes a comma-separated list of stdio, motd, email, and command. stdio writes to standard output. When the timer runs it, that output lands in the systemd journal. system_name sets the hostname shown in reports. Set it explicitly if your hosts share generic names.

[email] configures the email emitter with email_from, email_to, and email_host. The default host is the local machine, so you need a working local MTA.

[command_email] configures the command_email emitter. It pipes the report through a command such as mail instead of talking to an SMTP host directly. Use it when your mail relay already works for mail but not for direct SMTP.

[base] can override settings from DNF’s main configuration file (/etc/dnf/dnf.conf) for dnf-automatic runs, per the dnf-automatic(8) man page. Not every dnf.conf option is worth overriding here, so limit it to options you’ve tested on your build. Put exclude= here to fence packages off from unattended runs. Manual dnf upgrade still sees them. Step 9 covers it.

Don’t add keys that aren’t in your man page. dnf-automatic doesn’t reject unknown keys loudly, so an invented key fails silently.

Step 3: Pick the right timer (this is where most setups break)

dnf-automatic ships four timer units. Each one starts a matching .service. They differ in how they treat apply_updates and download_updates.

Timer unitDownloadsInstallsReads apply_updates/download_updates from the file?
dnf-automatic-notifyonly.timerNoNoNo, forces notify-only
dnf-automatic-download.timerYesNoNo, forces download-only
dnf-automatic-install.timerYesYesNo, forces download and install
dnf-automatic.timerPer file (RHEL’s shipped file: yes)Per file (RHEL’s shipped file: no)Yes

The three suffixed timers pass a command-line flag that overrides the file. Every other setting still comes from automatic.conf, including upgrade_type, reboot, emitters, and [base]. You can confirm the override yourself:

systemctl cat dnf-automatic-install.service

Look at the ExecStart= line. You’ll see dnf-automatic called with a flag such as --installupdates. Run the same command against dnf-automatic.service and the flag is absent. So only the plain timer honors your file.

Which one should you enable?

  • Install mode on disposable hosts: dnf-automatic-install.timer. It’s the explicit choice. Anyone reading systemctl list-timers sees “install” in the unit name.
  • Install mode with the file as the single source of truth: dnf-automatic.timer with apply_updates = yes. Auditors can read one file and know the behavior.
  • Risky hosts: dnf-automatic-notifyonly.timer or dnf-automatic-download.timer.

This guide uses dnf-automatic-install.timer from here on. Set apply_updates = yes in the file anyway, so the config doesn’t contradict what the host does. If you use dnf-automatic.timer instead, swap in dnf-automatic.timer and dnf-automatic.service in every command below.

Enable exactly one. Two enabled timers with different intents is a common misconfiguration.

Step 4: Confirm your repos publish security advisories

This check tells you whether upgrade_type = security will ever find anything. Run it before you enable any timer:

sudo dnf updateinfo list --security

On a host with pending advisories, typical DNF 4 output shows an advisory ID, its type and severity, and the affected package on each line. Column layout can differ by DNF version and repo metadata, so read the columns your command actually prints. The ID format comes from whoever built the repo metadata on that system.

Output of sudo dnf updateinfo list --security on a Rocky Linux or AlmaLinux host, showing advisory IDs, severity labels such as Important or Moderate, and package names

Now cross-check against the update set:

sudo dnf check-update --security
echo $?

The dnf(8) man page documents check-update exit status: 0 when no listed updates match the command (including --security), 100 when at least one matching update would be listed, and 1 on failure. The security filter changes which packages count, not that scheme.

On your RHEL, Rocky, or Alma build, run the pair above once and read man dnf locally before you wire monitoring to $?. Wrapper scripts and older tooling sometimes mishandle exit code 100.

When security updates are pending, check-update --security usually prints one line per package. No output plus exit 0 means none are listed under the current repos and filters. Exit 1 means the check failed; inspect stderr and fix repos or metadata before you trust the result.

Read the two results together:

  • Advisories listed and check-update --security lists matching packages: metadata works. Security-only mode will find these packages.
  • Advisories empty, but plain dnf check-update shows updates: either nothing pending is security-related, or a repo doesn’t publish advisory metadata. Look at which repos the pending packages come from.
  • Empty on a host you know is behind: the gap is in repo metadata. No dnf-automatic config change fixes it.

To see what an unattended security run would do without installing anything, do a dry run:

sudo dnf upgrade --security --assumeno
# --assumeno answers "no" at the confirmation prompt, so nothing is installed

The transaction summary previews what the timer will install.

Step 5: Enable the timer and verify the schedule

sudo systemctl enable --now dnf-automatic-install.timer

Expected output is a single Created symlink ... line pointing into timers.target.wants.

Then check that it’s the only dnf-automatic timer active:

systemctl list-timers 'dnf-automatic*'

The output has NEXT, LEFT, LAST, PASSED, UNIT, and ACTIVATES columns. You want exactly one row. It should show dnf-automatic-install.timer in UNIT and dnf-automatic-install.service in ACTIVATES. LAST stays empty until the first run.

systemctl list-timers output showing a single dnf-automatic-install.timer row

Check the shipped default schedule on your host rather than assuming one:

systemctl cat dnf-automatic-install.timer

The [Timer] section shows OnCalendar= and any RandomizedDelaySec=. You’ll override both in Step 8.

Step 6: Set the reboot policy

Installing a kernel without rebooting leaves you running the old, vulnerable kernel. Rebooting at the wrong moment takes down a service. The reboot key in [commands] decides which risk you take.

reboot valueBehaviorUse it when
neverNever reboots after a runYou reboot manually in a window
when-changedReboots after any run that changed packagesRarely. It reboots far more often than needed
when-neededReboots only when the transaction needs one (kernel, core libraries such as glibc, systemd)Unattended hosts that can tolerate a reboot

For disposable hosts, set:

# /etc/dnf/automatic.conf
[commands]
reboot = when-needed
reboot_command = "shutdown -r +5 'Rebooting after applying package updates'"

reboot_command sets the command dnf-automatic runs to trigger the reboot, so you can change the delay. How the string is parsed (for example, quoting and shell features) can vary by build, so check man dnf-automatic on your host and test it on the canary. +5 gives logged-in users five minutes of warning. Want to drain the node first? Point reboot_command at your own wrapper script that drains, waits, and then reboots, and confirm on a canary that your build runs it as expected.

A self-rebooting server also needs its power and network to come back cleanly. If the box sits on the end of a long run, a UPS with clean shutdown hooks helps. It keeps a mid-boot power blip from turning a routine patch into a fsck.

Warning: reboot = when-needed will restart the host without asking. Don’t set it on a database primary or quorum node. Check systemctl list-timers on those hosts and make sure the timer there is notify-only or download-only.

Step 7: Use needs-restarting -r for manual reboot windows

If you keep reboot = never, you still need to know when a reboot is overdue. needs-restarting answers that. Find out which package provides it on your host:

dnf provides '*/needs-restarting'

Package names vary by release: the dnf needs-restarting plugin typically comes from dnf-plugins-core, and some releases also ship a dnf-utils or yum-utils compatibility package. Install whichever package the output names, then run:

sudo dnf needs-restarting -r
echo $?

If a reboot is recommended, the output lists the updated core packages and ends with Reboot is required to fully utilize these updates. The exit code is 1. If nothing core changed, you’ll see No core libraries or services have been updated since boot-up. followed by Reboot should not be necessary. The exit code is 0.

Output of sudo dnf needs-restarting -r after a kernel update, showing the list of updated core packages and the message "Reboot is required to fully utilize these updates."

That exit code is scriptable. A cron job or monitoring check in your maintenance window can reboot only when it returns 1. The SSDNodes needs-restarting guide covers the service-level needs-restarting output if you also want to restart individual daemons.

Step 8: Pin a maintenance window and stagger the fleet

Override the shipped schedule with a drop-in. It survives package updates. systemctl edit writes under /etc/systemd/system/ and leaves the vendor unit alone.

sudo systemctl edit dnf-automatic-install.timer

Add this between the comment markers the editor shows:

[Timer]
# An empty OnCalendar= clears the shipped schedule; without it, systemd adds yours to the default
OnCalendar=
OnCalendar=Tue *-*-* 02:00
# Spread start times across a 45-minute window
RandomizedDelaySec=45m
The systemctl edit dnf-automatic-install.timer editor showing a drop-in with a [Timer] section containing an empty OnCalendar= line, OnCalendar=Tue *-*-* 02:00, and RandomizedDelaySec=45m

Save, then confirm:

sudo systemctl daemon-reload
systemctl list-timers 'dnf-automatic*'

The NEXT column should now show the next scheduled Tuesday run at 02:00 plus the randomized delay. Check the displayed timestamp and timezone against your intended window. Forget the empty OnCalendar= line and you’ll get two triggers instead of one. The drop-in is additive by default.

Staggering across a fleet. RandomizedDelaySec spreads hosts within a window, but it doesn’t guarantee a canary goes first. Use separate OnCalendar values per group:

GroupOnCalendarPurpose
CanaryMon *-*-* 02:00One or two hosts find breakage first
Wave 1Tue *-*-* 02:00Half of each stateless pool
Wave 2Wed *-*-* 02:00The other half

Splitting each load-balanced pool across waves caps a bad patch at half a pool. Push the drop-in files with whatever config management you already run. For large fleets, Red Hat Satellite or an Ansible patch playbook can replace local timers with central orchestration. The trade-off is one more system to run.

Tip: Planning a RHEL 9 to 10 Leapp upgrade? Disable the dnf-automatic timer on that host until the upgrade is done and verified. Our RHEL 9 to RHEL 10 Leapp upgrade guide covers the rest of the prep.

Step 9: Protect kernel, database, and runtime packages

You have two tools, and they behave differently.

exclude= hides packages from dnf completely. Put it in [base] of automatic.conf to affect only unattended runs:

# /etc/dnf/automatic.conf
[base]
# Space-separated globs; matched packages are invisible to dnf-automatic runs only
exclude = postgresql* mariadb-server* nodejs*

Manual dnf upgrade still sees those packages, so you patch them in your own window. Put the same line in /etc/dnf/dnf.conf instead and it blocks manual upgrades too. That’s usually more than you want.

Think hard before excluding kernel*. Kernel CVEs are among the most common security advisories. Excluding the kernel trades reboot risk for exposure. A better compromise is often reboot = never plus a scheduled needs-restarting -r window.

versionlock pins an exact version. It suits app stacks certified against a specific build. On RHEL 9-family hosts the plugin package is usually python3-dnf-plugin-versionlock; on other releases, confirm the name with dnf provides 'dnf-command(versionlock)' first:

sudo dnf install python3-dnf-plugin-versionlock
sudo dnf versionlock add nodejs
sudo dnf versionlock list

versionlock list prints the locked NEVRA strings. Locked packages stay put for both manual and automatic runs. They move again only after you run sudo dnf versionlock delete nodejs.

Re-run the dry run to confirm your exclusions took effect:

sudo dnf upgrade --security --assumeno

Versionlocked packages shouldn’t appear in the transaction summary. That dry run doesn’t read automatic.conf, so [base] exclusions won’t show there. Verify those in the journal after the first real run.

Notifications and Logging: Where dnf-automatic Reports Go

With emit_via = stdio, the run report goes to standard output. systemd captures it in the journal under the service unit. That’s the lowest-effort setup and the one to verify first.

Add motd if admins SSH in regularly, since the next login shows what changed. Add email only after you’ve proven mail delivery works on the host:

sudo dnf install postfix s-nail
sudo systemctl enable --now postfix
echo "dnf-automatic mail test" | mail -s "test from $(hostname)" you@example.com

If that test message doesn’t arrive, the email emitter won’t work either. Fix the MTA first. Then set emit_via = stdio,email and fill in email_from, email_to, and email_host in [email].

Audit What dnf-automatic Installed

An auditor usually asks “what changed on this host last week, and when?” Four sources answer it.

Check the timer history

systemctl list-timers 'dnf-automatic*'

LAST gives the most recent trigger time. That proves the schedule fired. Check the journal to see whether anything was installed.

Read the service journal

sudo journalctl -u dnf-automatic-install.service -n 50 --no-pager
# -u filters to one unit; -n 50 shows the last 50 lines; --no-pager prints straight to the terminal

Each run shows a start entry, the stdio emitter’s report, and a finish entry. With stdio enabled and a successful run, the report should list the packages found or installed. Confirm the transaction in dnf history rather than relying on the journal alone. For a date range:

sudo journalctl -u dnf-automatic-install.service --since "2026-11-24" --until "2026-12-01" --no-pager
Output of sudo journalctl -u dnf-automatic-install.service -n 50 --no-pager showing a completed run with timestamps and the list of installed packages from the stdio emitter

If older runs are missing, check whether the journal survives reboots:

ls -d /var/log/journal
journalctl --list-boots
grep -i '^Storage' /etc/systemd/journald.conf /etc/systemd/journald.conf.d/*.conf 

If --list-boots shows only the current boot, earlier boots weren’t kept on disk.

If that directory doesn’t exist, journald is probably keeping logs only under the volatile /run/log/journal. Set Storage=persistent in /etc/systemd/journald.conf (or create /var/log/journal and let systemd-tmpfiles set its permissions), restart systemd-journald, and run sudo journalctl --flush to move entries from the current boot to disk. Entries from earlier boots that were never written to disk can’t be recovered.

Also check SystemMaxUse= retention, free disk space, and any log forwarding, since those decide how far back your audit trail reaches.

Pull the dnf transaction record

sudo dnf history list

The output columns are ID, Command line, Date and time, Action(s), and Altered. Match each transaction’s timestamp against the journal entry from the same run. Then drill in:

sudo dnf history info 42
# replace 42 with the transaction ID from the list

history info lists every package with its old and new version. That’s the strongest single piece of audit evidence.

dnf history list output with an automatic security run as the newest transaction

Check dnf’s log files

ls -l /var/log/dnf*

On DNF 4 RHEL-family installs, dnf typically writes several logs here. dnf.rpm.log usually records per-package install and upgrade lines, and dnf.log records broader dnf activity. DNF 5 and custom logging settings can use a different layout. Confirm which ones exist on your host before you name one as the source of truth in an audit procedure. Ship them, along with the journal, to whatever central log store you use. A NAS share works for a homelab.

Attempt a Reverse Transaction After a Bad Update

dnf history undo reconstructs the inverse of one recorded DNF transaction. It is not a snapshot rollback, a btrfs/ZFS rewind, or a guarantee that the host returns to a known-good state. Kernel modules still loaded, dependency graphs, %config file changes, maintainer scriptlet side effects, and application or database contents can stay wrong even when undo completes without errors.

Find the transaction with dnf history list and dnf history info from the audit section. On production systems, take a tested backup or VM snapshot first and keep an application-level recovery plan. Rely on undo only after you understand what that transaction touched, not as a default fleet playbook.

sudo dnf history undo 42

dnf shows the proposed reverse transaction and asks for confirmation. Undo succeeds only when every older package version in that transaction still resolves from your enabled repositories. Retired builds, repo mirror gaps, or metadata changes since the original run can block undo or leave the system in a mixed state. Our dnf history rollback guide walks through those failure modes. It still assumes you can fall back to backup or rebuild if undo is incomplete.

While you investigate, disable the timer so it doesn’t re-apply the update:

sudo systemctl disable --now dnf-automatic-install.timer

Kernel regressions often need a boot change rather than history undo. RHEL-family systems keep several kernels installed (installonly_limit in /etc/dnf/dnf.conf, commonly 3 on RHEL-family installs; check the value on your host). Boot the previous one:

sudo grubby --default-kernel
sudo grubby --info=ALL
# find the index or path of the previous kernel, then:
sudo grubby --set-default /boot/vmlinuz-PREVIOUS_KERNEL_VERSION

Replace PREVIOUS_KERNEL_VERSION with the version string shown by --info=ALL. Run grubby --default-kernel again to confirm the change before you reboot.

Troubleshooting dnf-automatic Timers, Errata, and Email

Order these by blast radius. Check timer state before config, and config before repos.

Timer is active but nothing ever gets installed

Why it happens: A non-install timer is enabled, and it’s overriding apply_updates = yes in the file. Or dnf-automatic.timer is enabled with apply_updates = no.

Fix: List enabled state for all four units:

systemctl is-enabled dnf-automatic.timer dnf-automatic-install.timer dnf-automatic-download.timer dnf-automatic-notifyonly.timer

Disable every unit you didn’t intend to use. If the remaining one is dnf-automatic.timer, confirm apply_updates = yes in [commands].

Timer behavior doesn’t match a manual dnf upgrade

Why it happens: Two timers with conflicting intents are enabled. Or someone edited automatic.conf for a timer that ignores those keys.

Fix: Run systemctl list-timers 'dnf-automatic*', disable all but one, and compare with sudo dnf upgrade --security --assumeno. Remember that manual runs don’t see [base] exclusions from automatic.conf.

upgrade_type = security finds zero updates

Why it happens: The repos supplying the pending packages don’t publish advisory metadata, or coverage is incomplete for those packages.

Fix: Run sudo dnf updateinfo list --security and sudo dnf check-update --security; use echo $? and man dnf on your build (exit 100 means matching updates are listed, 0 means none). If plain dnf check-update shows updates but the security variants don’t, the gap is in repo metadata. Either accept it, or switch those hosts to upgrade_type = default with a tighter exclude= list.

Kernel installed but the server never rebooted

Why it happens: reboot = never, which is the default.

Fix: Set reboot = when-needed, or keep never and schedule dnf needs-restarting -r in your window.

Server reboots after every run

Why it happens: reboot = when-changed triggers on any package change.

Fix: Switch to reboot = when-needed.

Email reports never arrive

Why it happens: No working local MTA, or wrong [email] values.

Fix: Send a test with mail as shown earlier. Check sudo journalctl -u postfix --since today for delivery errors, then re-check email_host, email_from, and email_to.

Wrapping Up

Unattended security patching on RHEL-family hosts is safe when you control four things. Those are the timer, the packages it can touch, the reboot policy, and where the record lands. The timer choice causes the most confusion, so make the file and the unit agree. My take: when-needed reboots belong on disposable hosts only. Anything stateful gets notify-only and a human.

StepActionApplies To
1-2Install dnf-automatic, set upgrade_type = securityAll hosts
3, 5Enable exactly one timerAll hosts
4Verify advisories with dnf updateinfo list --securityAll hosts, especially Rocky/Alma
6-7reboot = when-needed or needs-restarting -r windowStateless vs. stateful hosts
8OnCalendar + RandomizedDelaySec drop-in per waveFleets
9exclude= and versionlockDB, runtime, pinned stacks

Before you call it done, reboot the canary and run systemctl list-timers 'dnf-automatic*' once more. You should still see one timer, with your custom NEXT time. That confirms the drop-in survives a reboot.