change 300 to 30 for timeout in /etc/yum.conf