Wednesday, April 13, 2011

Limit APT download rates/speed


Second: Yeah, as i said in my previous post (doh!) im re-installing Debian on my notebook and one thing i found myself wanting to do was to lower the download rate to some number that i can keep using my connection on a different (or not) pc while downloading big collections of packages. 

Here is how i made it:

Create a file called: /etc/apt/apt.conf.d/75downloadspeed

  Queue-mode "access";
    Dl-Limit "25";

This also can be done on the fly:

sudo apt-get -o Acquire::http::Dl-Limit=25 upgrade

That's it!, enjoy my l33tness