Friday, August 5, 2011

Fedora yum update slow symptom

I have my netbook installed with Fedora 14 which has been fine-tuned to have better wide-screen display driver, faster start-up and so on. Finally, it takes me more than an hour to do the first "yum update" process which should be finished in 10 minutes in Ubuntu Netbook edition.

People suggest using a yum plugin called fastestmirror:
$
$su -c 'yum install yum-plugin-fastestmirror'


After the installation, it does not really help to boost up the download speed. It is suspected that it takes slow mirror sites for downloading.

Digging into the details of /etc/yum/pluginconf.d/fastestmirror.conf, I found one useful option called "include_only". And then I uncomment one line and change it to:

#
include_only=mirror.aarnet.edu.au

AARNET supposed to be fastest mirror in Australia, so you might want to add your fastest mirror in your own country.

Before executing yum update, it is better to remove the cache file timedhosts.txt which was used for time checking from previous actions:

$
$su -c 'rm /var/cache/yum/i386/14/timedhosts.txt'


Now, run:

$
$su -c 'yum update'

You should be able to pull things from the repository mirror at top speed.

No comments:

Post a Comment