Ask Your Question
1

Speeding up yum

asked 2014-04-20 08:46:12 -0600

megh gravatar image

updated 2014-04-20 16:37:20 -0600

remjg gravatar image

I live in a country like India and internet is really slow

So I would like yum to not download metadata and other unneccesary data everytime.

I have seen that downloading the updates and fedora repository metadata takes a lot of time.

So can I configure way to stop it or make yum start the download process faster?

(I already use the fastestmirror plugin and download speed is proper (as per my internet connection))

edit retag flag offensive close merge delete

Comments

1

Yum Fast Downloader plugin it's awesome. It works and now yum it's fast enough. Hmm, I think this comment should be converted to an answer.

NickTux gravatar imageNickTux ( 2014-07-20 05:47:30 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2014-04-20 21:27:54 -0600

mether gravatar image

Yes. You can either reconfigure yum to cache the metadata for a longer period using metadata_expire (refer to man page of yum.conf) or use dnf which caches for a longer period by default.

edit flag offensive delete link more

Comments

metadata would mean information about package version of a remote repository. Between two metadata refresh the package version in the current metadata would be the latest even if upstream has released a new package and that is available in the repository. Am I correct?

What are the recommended value for metadata_expire?

What are the repercussions of longer expire timeout?

How can I manually refresh metadata?

sudhirkhanger gravatar imagesudhirkhanger ( 2014-04-20 22:02:53 -0600 )edit

You are correct. Yum default is 6 hours while you can even configure it to be 2 days. It just means you won't necessarily get the very latest updates. yum clean expire-cache will force expire the cache.

mether gravatar imagemether ( 2014-04-21 00:01:53 -0600 )edit

expire-cache may remove local data. Don't you think yum clean metadata would be a better option.

sudhirkhanger gravatar imagesudhirkhanger ( 2014-04-21 07:46:05 -0600 )edit

Actually no. expire-cache only sets the cache as expire while clean metadata does more. What I suggested is the better option for this purpose.

mether gravatar imagemether ( 2014-04-21 08:11:05 -0600 )edit
2

answered 2014-04-20 22:06:39 -0600

There is also Yum Fast Downloader to use Aria to download packages.

edit flag offensive delete link more
0

answered 2014-04-21 18:51:37 -0600

deusdara gravatar image

Hi

Please see that thread.

Turbo Charge Yum with Fastest Mirror and AxelGet Plugins

http://www.linuxadvocates.com/2013/04/turbo-charge-yum-with-fastest-mirror.html

edit flag offensive delete link more

Comments

Should i use yum fast downloader or axelget?

megh gravatar imagemegh ( 2014-04-22 06:22:58 -0600 )edit
0

answered 2014-04-20 22:30:58 -0600

Akash8523 gravatar image

Use fedy to configure yum :)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-04-20 08:46:12 -0600

Seen: 1,647 times

Last updated: Apr 21 '14