LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum.conf & Repository Additions (https://www.linuxquestions.org/questions/linux-newbie-8/yum-conf-and-repository-additions-724238/)

senthilmuthiah 05-06-2009 04:37 PM

Yum.conf & Repository Additions
 
All:

Just installed Fedora 10 in my desktop. I wanted to install filezilla and hence used, yum install filezilla. It took forever! I mean, the download speed was very very less. A few posts suggested me to add closer mirrors onto the yum.conf file. When I opened my yum.conf, it looked like this!

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d



I really don't want to mess this file up. Can someone please direct me as to how should I go about adding repositories. Is there any format or anything?

Thanks in advance!

acid_kewpie 05-06-2009 04:58 PM

you don't want to add repositories at all. If you look in /etc/yum.repos.d you'll see the actual repo's there... the yum.conf file there is just basic settings. In those repo files you'll probably be using a mirrorlist rather than a direct base url, so you'll have many many mirrors already configured, and fc10 will use the fastestmirror plugin by default so try to get a good fast mirror by default. you should need to do nothing really.

senthilmuthiah 05-06-2009 07:42 PM

Hi Chris!

Thanks for your kind reply! :)

If F10 would be able to find the fastest mirror, why does my Yum download stuff in the window 4-16kbps? I mean, definitely my connection is not a problem as this desktop is part of my school and my other downloads or browsing is very very fast. Only Yum is very very very slow. Even while using the update manager, I found a similar problem.

What do you think?

Thanks again and looking forward to your reply,
Senthil

acid_kewpie 05-07-2009 03:25 AM

It's hard to really see a problem, which isn't something you want to here I know... yum uses libcurl or such like to very basically grab a file frmo the web, so you can just use wget or curl yourself to do the same. You could confirm that you ARE using a mirrorlist, and you might want to do a "yum clean all" to blow out any cobwebs. TBH, I don't really know how this fastest mirror plugin works, as I don't see it trying many mirrors... maybe it's just well hidden.


All times are GMT -5. The time now is 03:21 PM.