You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Yum Commands Hang on Oracle Linux

edited Nov 9, 2022 9:04AM in 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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!