When there is a problem with access to yum repos (for example if a needed proxy isn't configured), running a command like 'yum update' will wait for a very long time trying lots of different mirrors. Sometimes that is good, but sometimes I would rather check quickly whether access to yum repos is OK.
Is there a way to get yum to quickly check its connectivity and give me a status code indicating whether access to remote repos is OK?