I have the following yum config:
Code: Select all
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Code: Select all
http://repo/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: repo; Name or service not known"
returns for me
http://repo/[....]
So yum builds an url with the domain repo, which of course it does not exist.
If I uncomment baseurl, and comment mirrolist, yum works.
Do you have any idea why mirrorlist does not work for me?
I have this problem on many machines.
Thanks