Previous Section  < Day Day Up >  Next Section

Recipe 2.14. Configuring Yum

2.14.1 Problem

You want to change the download source from which Yum gets software.

2.14.2 Solution

Edit your download sources in /etc/yum.conf. For example, say you want to use some Fedora mirrors at http://www.fedora.us/wiki/FedoraMirrorList:

University of Southern California, USA

   ftp://mirrors.usc.edu/pub/linux/fedora/

   http://mirrors.usc.edu/pub/linux/fedora/

Now edit /etc/yum.conf, using the default entries as a template:

[base]

name=Fedora Core $releasever - $basearch - Base

baseurl=http://mirrors.kernel.org/fedora/core/$releasever/$basearch/os

   

baseurl=http://mirrors.usc.edu/pub/linux/fedora/$releasever/$basearch/os

2.14.3 Discussion

It's good netiquette to use mirrors whenever possible, as the primary site at http://fedora.redhat.com gets hammered.

2.14.4 See Also

    Previous Section  < Day Day Up >  Next Section