Yum Commands Hang on Oracle Linux
Yum commands, including yum update, hang whenever anyone attempts to run them on an Oracle Linux server.
If, apart from yum or rpm commands, no other commands are hanging, then a likely cause for this issue is corruption in the rpm database or a terminated process holding a lock on /var/lib/rpm/.dbenv.lock .
Check which other yum or rpm processes are running with the following command:
# ps -eaf | egrep 'rpm|yum'
The output may look like the following:
# ps -eaf | egrep 'rpm|yum'
root 5573 5513 7 15:28 pts/2 00:00:01 /usr/bin/python /usr/bin/yum update
root 5576 3093 0 15:28 pts/1 00:00:00 grep -E --color=auto rpm|yum
Tagged:
1