When using Centos 6.5 OS sometimes you can get the following error when attempting any yum updates.
The error is:
# yum update
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
In the Centos 65 operating system this usually means that there are no name servers entered.
Fix:
Type:
vi /etc/resolv.conf
{Press I to insert}
nameserver 8.8.8.8
nameserver 8.8.4.4
:wq