I have set up a centOS 6.5 server
using VMWare Workstation 9
on a Windows 8.1
host laptop. When trying to use yum
to ins
Check if you are able to ping an externals site such as www.google.com. If not insert lines:
nameserver 208.67.222.222
nameserver 208.67.220.220
in /etc/resolve.conf
Also in /etc/yum.repos.d/CentOS-Base.repo
uncommented all the mirrorlist and comment out all the baseurl
If mirrorlist doesn't work for you you can try only the baseurl.
Hope it helps!!
Centos 6 version met its EOL last month (November 30, 2020)
You can use one of the unofficial mirrors listed by centos in your /etc/yum.repos.d/CentOS-Base.repo
. In my case (6.10) I used the mirror http://mirror.nsc.liu.se/centos-store/6.10/ and it worked smoothly:
[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.nsc.liu.se/centos-store/6.10/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
# same for the others [updates] etc in the file