Today Changqing encountered this error when reinstalling yum, prompting "dependency detection failed"
Solution:
Add --nodeps --force at the end of the command
Parameter meaning:
--nodeps: do not detect dependencies
--force: force installation
example:
rpm -ivh yum-* --force --nodeps
that's ok