LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-06-2009, 04:37 PM   #1
senthilmuthiah
Member
 
Registered: Mar 2009
Distribution: Ubuntu, Fedora
Posts: 56

Rep: Reputation: 16
Question 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!
 
Old 05-06-2009, 04:58 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 05-06-2009, 07:42 PM   #3
senthilmuthiah
Member
 
Registered: Mar 2009
Distribution: Ubuntu, Fedora
Posts: 56

Original Poster
Rep: Reputation: 16
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
 
Old 05-07-2009, 03:25 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
  


Reply

Tags
repositories, yumconf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 4 07-19-2010 07:42 PM
erased yum.conf by forced yum-update in RHEL5.3, need help curiocurio Red Hat 3 04-21-2009 03:33 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 02:19 PM
yum.conf - extract files from a DVD. How define repo location and what is yum command emuub Linux - Software 2 06-17-2007 07:28 AM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM


All times are GMT -5. The time now is 04:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration