modifying yum.conf

Harvey Ussery yellowdog-general@lists.terrasoftsolutions.com
Tue Dec 16 07:04:01 2003


Derick Centeno wrote:

> I tried to modify yum.conf and replace what was there with mirrors.  I 
> was not successful.
> First, what is the procedure to enter a new url for updates? 

The procedure from this previous post worked for me:

Are you sure you don't just have the same problem that Stephen Gross had a few digests ago which may have been the same as a problem I had? 

If so - check my reply - 

"I had exactly this problem for a while. I solved it (seemingly) in the end by editing /etc/yum.conf and changing the default location for downloads to my local (fairly local anyway) ftp mirror.

here's mine - (in the uk)
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest

[base]
name=Yellow Dog Linux 3.0 base
baseurl=ftp://ftp.mirror.ac.uk/sites/ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0/RPMS.main/

[updates]
name=Yellow Dog Linux 3.0 updates
baseurl=ftp://ftp.mirror.ac.uk/sites/ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0/RPMS.updates/


It's the 'baseurl' lines tht need editing - make sure that whatever url you put in points to content equivalent to the url you are overwriting - I just did this with two browser windows open making sure that what I saw was the same and that the directories had the same content.
That solved my problem. Before I made the change even small files made yum get reset but since then (fingers crossed) I've had no trouble and not one connection reset.

Hope that helps."

Here is the latter half of my /etc/yum.conf with the URL's I am now using (successfully):
[base]
name=Yellow Dog Linux 3.0 base
baseurl=http://ydl.oregonstate.edu/yum/3.0/RPMS.main/


[updates]
name=Yellow Dog Linux 3.0 updates
baseurl=http://ydl.oregonstate.edu/yum/3.0/RPMS.updates/





>
> Second, what was the original mirror yum was pointing to for updates?  
> I erased it; next time I'll comment it out!

And here are my URLs as originally configured in yum.conf:
[base]
name=Yellow Dog Linux 3.0 base
baseurl=http://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0/RPMS.main/


[updates]
name=Yellow Dog Linux 3.0 updates
baseurl=http://ftp.yellowdoglinux.com/pub/yellowdog/yum/3.0/RPMS.updates/

HTH.    --Harvey

>
>
>