DNF Update Notifications - Monitor Fedora, RHEL & Rocky Linux Updates
Update-Watcher’s DNF checker monitors Fedora, RHEL, Rocky Linux, AlmaLinux, and other DNF-based distributions for available package updates. It automatically classifies security updates separately from regular updates, so you can prioritize critical patches in your notification workflow.
The setup wizard auto-detects DNF on your system and offers to enable this checker.
Prerequisites
- A Fedora, RHEL, Rocky Linux, AlmaLinux, or compatible system with
dnfinstalled. - Sudo access for the user running Update-Watcher (unless
use_sudois disabled).
Adding via CLI
Add a DNF watcher:
update-watcher watch dnfEnable security-only filtering:
update-watcher watch dnf --security-onlyDisable sudo if running as root:
update-watcher watch dnf --no-sudoCombine flags:
update-watcher watch dnf --security-only --no-sudoConfiguration Reference
| Option | Type | Default | Description |
|---|---|---|---|
use_sudo | bool | true | Run DNF commands with sudo. Disable if running as root or with appropriate permissions. |
security_only | bool | false | Only report security updates. Regular package updates are silently filtered out. |
YAML Configuration Example
Basic DNF configuration:
watchers:
- type: dnfFull configuration with all options:
watchers:
- type: dnf
use_sudo: true
security_only: falseSecurity-only monitoring for a production RHEL server:
watchers:
- type: dnf
security_only: trueHow It Works
The DNF checker performs two operations:
Step 1: Check for updates
Runs dnf check-update to list all packages with available updates. DNF returns a non-zero exit code when updates are available, which the checker handles correctly.
Step 2: Classify security updates
Runs dnf updateinfo list --security to identify which available updates are security-related. Each update is tagged as either a regular update or a security update in the results.
The checker reports each available update with the package name, current version, available version, and whether it is a security update. Notification templates can highlight security updates differently from regular updates.
Tips
RHEL and Rocky Linux: On RHEL, Rocky Linux, and AlmaLinux, the security metadata is provided by the distribution vendor. Security classification is reliable and based on the advisory information in the repositories.
Fedora: Fedora also provides security advisory metadata through the Bodhi update system. Security classification works the same way as on RHEL-family distributions.
CentOS Stream: CentOS Stream uses DNF and is fully supported. Security metadata availability depends on the specific repositories configured.
Related
Send DNF update notifications to Slack, Discord, Email, Teams, or any of the other 16 supported notification channels.