Fedora Linux Support Community & Resources Center
  #1  
Old 12th December 2010, 04:06 AM
tessio Offline
Registered User
 
Join Date: Oct 2010
Posts: 17
linuxfedorafirefox
yum sync repos every time

I'm new with Fedora/Yum.. and I want to kill my self every time I ask yum to do something..
Why it need to sync the repos database every time? Fedora is not a rolling release distro, so the packages don't change so often.. only with minor updates..
For example: I have absolute certainty that emesene-1.6 is the same for the last 12 months, and I want to install it quickly.. what can I do to circumvent yum's obsession with repo syncing?
Reply With Quote
  #2  
Old 12th December 2010, 05:11 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,334
linuxfedorafirefox
Re: yum sync repos every time

well, You are wrong when you say that the packages don't change often. They are constantly updating packages in the repos so you want it to refresh and get the new versions.

But, you can change the length of time that yum keeps the metadata before it refreshes it if you wish.

Just edit the file /etc/yum.conf and uncomment the line for metadata_expire and put in the value you wish it to use. The default is 90 minutes. If it was me I wouldn't change it, though. I prefer to keep it up to date.
Reply With Quote
  #3  
Old 12th December 2010, 05:21 AM
kurtdriver Offline
Registered User
 
Join Date: Jul 2005
Location: Vancouver, Canada
Posts: 1,604
linuxfedorafirefox
Re: yum sync repos every time

If your package hasn't changed, just download it and then do a local install.
Code:
yumdownloader emesene
and then do,
Code:
yum localinstall emesene-1.6.rpm
Reply With Quote
  #4  
Old 12th December 2010, 05:29 AM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 5,539
linuxopera
Re: yum sync repos every time

yum -C will use cache only.

If you look in your /etc/yum.repos.d repo files, you will see that some have metadata_expire=7d meaning that some repos are only refreshed once a week.

I'm not sure which do and which don't. Probably updates refreshes each time. The standard fedora.repo though, only refreshes once a week.

Another thing you can do, depending upon your purpose (that is, if you're installing a particular package rather than checking for updates) is disable the non-used repos. For example, if you have fedora, fedora-updates rpmfusion, google, adobe and so on, you can always do something like
yum --disablerepo=* enablerepo=fedora install <my_package>

(You might have to use disablerepo=\*, I haven't done this in awhile.)
Reply With Quote
Reply

Tags
repos, sync, time, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sync time with NFS server manojg Using Fedora 6 19th August 2010 05:51 PM
Do the updates repos xml files get out of sync with reality ?. markdk Using Fedora 2 12th July 2009 05:03 AM
Correct Time Sync Nezmin2 Using Fedora 1 14th March 2007 09:42 AM
Time Sync 07dcolem Using Fedora 2 4th December 2004 04:53 AM


Current GMT-time: 14:38 (Sunday, 23-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Poperinge Photos - Bojnurd Photos - Payson