I am downloading a very large package and my internet connection isn't the fastest, so browsing the web at the same time is a pain. How can I limit the bandwidth apt-get uses?
Asked
Active
Viewed 1.5k times
1 Answers
76
A trick I picked up when adjusting someone else's computer:
For temporary limits, add the
-oflag to yourapt-getcommand:sudo apt-get -o Acquire::http::Dl-Limit=25 install <package>For permanent throttling, create the file
/etc/apt/apt.conf.d/75lowerspeedand save the following in it:Acquire { Queue-mode "access"; http { Dl-Limit "25"; }; };
Both methods limits apt-get to 25 kBps (kilobytes per second).
- You can also use a traffic shaping program, such as wondershaper
or trickle
.
-
4I was writing about `wondershaper`, but your answer is better. – enzotib Jun 24 '11 at 17:55
-
2so finally I beat YOU for once :-D – Rinzwind Jun 24 '11 at 17:58
-
6@Rinzwind - I don't know how you keep coming up with these answers, but please keep doing so! – boehj Jun 24 '11 at 18:00
-
2@boehj just well homed searching skillz if I may say so myself ;) – Rinzwind Jun 24 '11 at 19:10
-
1Well, I'm digging ur skillz my man. Keep it up! – boehj Jun 24 '11 at 19:23
-
1Wow This is so useful! I'd give this +10 If I could :) – Binarylife Jun 24 '11 at 19:58
-
1The person that gave me the 18th upvote here got me over 20k rep. Thanks! :D – Rinzwind Mar 04 '12 at 17:22
-
1So useful when you don't want to disturb others doing there work on-line :) – Saurav Kumar Apr 07 '14 at 10:26