This happened recently when we used CentOS 6.5,
Loaded Plugins:fastestmirror, Refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package GCC available.
Error:nothing Todo
There are two ways in which this situation can occur:
1, no net, try: Ping www.baidu.com
If the display is not connected, it means that there is no network, you can not use the Yum command.
2, ping through the words, or is not used Yum command, indicating that the Yum mirror is not, then you have to download one to update.
After the installation of CentOS generally need to modify the Yum source to be able to install the update RPM package to achieve a more ideal speed. Domestic relatively fast has 163 source, Sohu source. Here is an example of 163 sources.
1. CD/ETC/YUM.REPOS.D
2. MV Centos-base.repo Centos-base.repo.backup
3. wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
4. MV Centos6-base-163.repo Centos-base.repo
5.yum Clean All
Finally in the use of Yum can be.