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.7k times
1 Answers
77
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
.