Do you leave your box on at night time?

In my /etc/crontab file I have these lines

0  1    *   *   *   root        /usr/bin/dpkg --get-selections >
/etc/PACKAGELIST
Generates a text file that shows all installed packages - good to back up
for restoring machine

20 1    *   *   *   root        /usr/bin/apt-get update -qq
Quietly update the lists

40 1    *   *   *   root        /usr/bin/apt-get dist-upgrade -qq
--download-only
Download all packages that are needed for an upgrade but don't install them.


0  2    *   *   mon-sat   root  /root/bin/backup > /var/log/backup.log
Do my daily backup

All my machines have something like this, with various times set in the wee
hours.  They all use the squid proxy too, so generally downloads are
decreased.

Then later I can do an apt-get upgrade and it looks like this


socks:~# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back:
  gphoto2 imagemagick kdelibs-data kino libgphoto2-2 libgphoto2-port0
libgtk2.0-0
  ...[snip]
  scantv streamer usbutils
The following packages will be upgraded:
  cpp cpp-3.3 debconf debconf-i18n debconf-utils debhelper doc-linux-text
eject g++ g++-3.3
  ...[snip]
  xlibs-static-dev xnest xprt xserver-common xserver-xfree86 xterm xutils
xvfb
124 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
Need to get 0B/121MB of archives.
After unpacking 2639kB disk space will be freed.
Do you want to continue? [Y/n] 


Of course this doesn't help if you want to install something big right now.


-----Original Message-----
From: Vik Olliver [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 1 May 2004 2:38 p.m.
To: CLUG
Subject: Throttling apt-get


To avoid my wife throttling me, can anyone tell me how to tell apt-get to
throttle its bandwidth usage?

Every time I fire off an apt-get install/update/upgrade there's this cry of
"Fee! Fi! Foe! Fum! Who's pinching all my bandwidth?" from her office. I
unless I terminate apt-get, things get ugly and I may be terminated myself.
I don't much fancy the "do it later" option.

Vik :v)
-- 
This PC runs Linux. If you find a virus apparently from me, it has forged
the e-mail headers on someone else's machine. Please do not notify me when
this occurs. Thanks.

Reply via email to