×
×

Slow yum update

The following commands require super user access.  If you're not currently logged in as root, you may need to run the following command:

$ sudo su

 

Slow yum updates are typically caused by slowness in the mirror from which the update is being received. This can typically be resolved by clearing your fastest mirror cache:

# yum clean all

 

If the yum update is still slow, the mirror causing the slowness can be excluded from the update process.  First, install nano:

# yum -y install nano

 

Edit the fastestmirror.conf file:

# nano /etc/yum/pluginconf.d/fastestmirror.conf

 

Add the following line to the file:

exclude=mirror.example.com

 

Of course, mirror.example.com should be replaced with the name of the slow mirror.

Then, you should be able to update the server normally:

# yum update