Technology and troubleshooting.

Wednesday, January 11, 2017

Set download limit for yum

This tutorial describes how to set download limit for yum. By default there is no throttle limit for yum update, install and upgrade. yum updates consumes all the bandwidth in a network while downloading the yum updates. Overcome this we need to set throttle to limit the download speed for yum.
Set download limit for yum

[Redhat/Centos/Fedora] has an option which allows you to limit the download rate.
Step #1: Open the Linux terminal and travel to /etc/yum.conf using favourite editor.
[root@localhost ~]# vim /etc/yum.conf
add the following line at the end of the yum.conf
throttle=250k

Example:- To set throttle for yum
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
#This entry will limit the download rate to 250 kilobytes per second
throttle=250k 
That's it..
I hope this information is useful for you. Please forgive any typos or incomplete sentences.
Share:

0 comments:

Post a Comment

Contributors

Popular Posts