Tag Archives: yum

How to speed up yum on centos

Yum is a great tool to install, remove and update packages on centos. As all of you may know yum uses the fastest mirror to download and install the packages on your dedicated server or your desktop computer.

Sometimes it comes to a slow connection between you and the current fastest mirror which is cached on yum, and you are getting a very low download speed for the packages.

To speed up yum, you may reset the yum’s fastest mirror on your dedicated server, and let it choose a new fast mirror to download the packages.

To perform this speed up on your yum, you should run the following command into your ssh/console. This command will remove the cache file of your current fastest mirror, and once you run the yum again, it will choose a new mirror for itself.

rm-f /var/cache/yum/timedhosts.txt

You can now install your packages faster …

yum -y update all
yum -y install PACKAGE_NAME

Thanks!