"yum clean" hangs - what to try next?
Solution 1:
I had the same problem, all my yum commands were hanging.
I ran the following commands
rm /var/lib/rpm/__db*
rm /var/lib/rpm/.rpm.lock
rm /var/lib/rpm/.dbenv.lock
So a combination of some of the above comments and answers.
Solution 2:
On my Redhat 7.2 this helps to let run the yum commands.
rm /var/lib/rpm/.dbenv.lock