When installing a package via Yum, the process stalled at “Running Transaction Test”.
After a lot of digging, I found that the problem was a stale NFS mount.
After unmounting this mount with the command below, Yum worked flawlessly again.
umount -l /mnt/sharename