📖 ~1 min read
Table of contents
Symptom & Impact
Unexpected package updates restart services during production hours.
Environment & Reproduction
Occurs when automatic update timers are enabled without maintenance windows.
systemctl list-timers | grep dnf
cat /etc/dnf/automatic.conf
journalctl -u dnf-automatic -n 60
Root Cause Analysis
Auto apply settings and timer schedules are too broad for service critical hosts.
Quick Triage
Confirm timer state and recent package transaction times.
systemctl status dnf-automatic.timer
dnf history list | head
Step-by-Step Diagnosis
Map update timing to service restart events.
journalctl --since yesterday | grep -E 'dnf|Updated|Started|Stopped'
systemctl cat dnf-automatic.timer

Solution – Primary Fix
Disable automatic apply on critical hosts and enforce controlled maintenance windows.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sed -i 's/^apply_updates =.*/apply_updates = no/' /etc/dnf/automatic.conf
systemctl disable --now dnf-automatic.timer

Solution – Alternative Approaches
Keep automatic download but require manual install approval.
sed -i 's/^download_updates =.*/download_updates = yes/' /etc/dnf/automatic.conf
Verification & Acceptance Criteria
No unscheduled update actions occur and service uptime remains stable.
systemctl is-enabled dnf-automatic.timer
journalctl -u dnf-automatic --since '24 hours ago'
Rollback Plan
Re-enable timer if patch emergency policy requires immediate automation.
systemctl enable --now dnf-automatic.timer
Prevention & Hardening
Define environment specific update windows and notification workflows.
crontab -l
cat /etc/dnf/automatic.conf
Related Errors & Cross-Refs
Related to maintenance window violations and transaction lock collisions.
Related tutorial: View the step-by-step tutorial for oracle-linux-10.
View all oracle-linux-10 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Oracle Linux automatic update and patch governance references.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.