sábado, 24 de septiembre de 2016

What is the difference between baseurl and mirrorlist? what address (url) should they have? If we swap baseurl and mirrorlist, still will it work in same way?

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.

baseurl
Must be a URL that points to the directory where the yum 'repodata' is. It can be a http://, ftp:// or file:// URL.

mirrorlist
It specifies a URL that points to a file containing a list of baseurls. You can use this statement instead of baseurl.
So basically mirrorlist is an easier way to specify a list of baseurls. The way they (list of baseurls / mirrorlist) work is: if the first link in the list fails for whatever reason, the system will try to get the item you need from the second URL in the list and so on.


http://www.linuxquestions.org/questions/linux-software-2/advance-configuration-for-yum-repositories-4175469115/

No hay comentarios:

Publicar un comentario