Limit apt download rate

Print Friendly, PDF & Email

There’s been numerous cases where I’ve had to limit the download speed of apt-get. Mostly, I just want to be able to browse/use the internet while also doing some kind of aptitude related function in the background.

Here’s how:

#this will limit the download rate to 25 kb/s for the duration of the session
sudo apt-get –o Acquire::http::Dl-limit=25 upgrade      
 
#this will limit the download rate to 30 kb/s for the duration of the session
sudo apt-get –o Acquire::http::Dl-limit=30 install [package1] [package2] [etc…]

Simple right?

Enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *