Tuesday, July 6, 2010

Debian: Bandwidth limiting apt

I enjoy tools like yum and apt, but wheres the control for limited bandwidth or shared bandwidth environments. Its not a magic options... or is it?

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

Limits downloads to 25k. However how do i do this with a distro upgrade via cli?

sudo aptitude update &&
sudo aptitude -o Acquire::http::Dl-Limit=25 safe-upgrade &&
sudo aptitude -o Acquire::http::Dl-Limit=25 full-upgrade

Should set you at a pretty steady 25K upgrade process.. might take a couple hours but its worth it.

No comments: