View Full Version : how to limit apt-get download speed
bepcyc
June 3rd, 2005, 05:25 AM
Is there any option like --limit-rate=2K to limit download speed when I get new packages with apt-get?
here (http://www.linux.org.pe/pipermail/linux-plug/2005-March/015059.html) I found one solution, but it doesn't work (guess file /etc/apt/apt-file.conf is not in use anymore)
Any other solutions for this problem?
xristos
June 3rd, 2005, 06:35 AM
Did you try
man apt-get ?
bepcyc
June 3rd, 2005, 07:07 AM
Did you try
man apt-get ?
yeah
and what about you?
xristos
June 3rd, 2005, 07:41 AM
Hey man it was just a question . I didn't imply anything.
So it appears that apt-get doesn't support bandwidth limiting.
You could try this ---> http://ubuntuforums.org/showthread.php?t=20342 instead .
XDevHald
June 3rd, 2005, 08:02 AM
I don't think he was aiming at you xristos, but the link that xristos have you bepcyc will help. Also when you make a thread, if you could start it with a "how do I" instead of "how to", so that the users are not confused with our Tips and Tricks forums. :)
bepcyc
June 3rd, 2005, 10:38 AM
Hey man it was just a question . I didn't imply anything.
So it appears that apt-get doesn't support bandwidth limiting.
You could try this ---> http://ubuntuforums.org/showthread.php?t=20342 instead .
Big thanks
That's what I looked for
2xristos: Sorry for my aggression, I just had a bad day ;)
2BB: sorry, I'll note this next time
michallo
October 19th, 2008, 06:02 PM
I found a better sollution.
create file /etc/apt/apt.conf.d/76download with content:
Acquire
{
Queue-mode "access";
http
{
Dl-Limit "25";
};
};
That limits apt-get to 25KB/s
junglism
December 9th, 2008, 11:20 AM
Hey michallo thanks for that - great solution! wondershaper wasnt really working for me
alienbrain
April 7th, 2009, 07:08 AM
Sweet, nice tip. Since I only sometimes need to apply the limit, I use the -o command line option. Here is how I use it:
sudo apt-get -o Acquire::http::Dl-Limit=25 upgrade
jsenlai
June 6th, 2009, 05:58 PM
had the same question. sweet tip there alienbrain. thanks
Alexandre Gomes
August 15th, 2009, 09:46 AM
Alienbrain, man, this tip is great! Thank you so much! Editing texts files always that I wanna limit my bandwidth is very unpleasant. Thanks!
Xamiga
November 5th, 2009, 03:32 PM
Alienbrain, man, this tip is great! I'm on HughesNet, and need to limit my bandwidth during the day.
Thanks
BobXin
December 4th, 2009, 04:03 PM
this tips help a lot on my server, it will not affect the access when update. great!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.