π ~1 min read
Table of contents
Symptom & Impact
`yum update` exits with lock errors, delaying patch windows and leaving vulnerable packages unpatched.
Environment & Reproduction
Common on shared RHEL 7 hosts running unattended updates, config management jobs, or manual yum commands concurrently.
Root Cause Analysis
A second package task or stale PID lock prevents yum from acquiring transactional control of RPM databases.
Quick Triage
Check `ps -ef | grep -E ‘yum|dnf|packagekit’`, then inspect lock files and active systemctl timers or service jobs.
Step-by-Step Diagnosis
Review `journalctl -xe`, confirm no active yum transaction, verify RPM DB health, and identify parent automation process.

Solution – Primary Fix
Stop conflicting service, clear stale lock only after process validation, then rerun yum successfully and record root cause.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Disable overlapping jobs, serialize patch orchestration, and move ad-hoc package tasks into one controlled maintenance pipeline.
Verification & Acceptance Criteria
`yum check-update` and `yum history` run without lock errors, and `systemctl status` shows healthy package-related units.
Rollback Plan
If package operations fail after cleanup, restore RPM DB backup and rerun previous known-good transaction set.
Prevention & Hardening
Enforce one yum job per host, monitor lock contention, and alert on repeated `Another app is currently holding the yum lock`.
Related Errors & Cross-Refs
`systemctl list-timers –all && journalctl -u yum-cron -n 100 && yum-complete-transaction`
Related tutorial: View the step-by-step tutorial for rhel-7.
View all rhel-7 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
RHEL 7 package management docs, yum-cron guidance, and Red Hat KBs for lock contention remediation.
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.