Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Is everyone's system "apt-get -qq update"ing every day?

From: Adam Porter <adam(at)alphapapa.net>
Date: Wed Jan 02 2008 - 22:22:22 EST


As posted at http://bugs.debian.org/457193

Am I missing something obvious, or...

$ less /etc/cron.daily/apt
...

check_stamp()
{

   stamp="$1"
   interval="$2"

   if [ $interval -eq 0 ]; then

       return 1
   fi
...

UpdateInterval=0
DownloadUpgradeableInterval=0
eval $(apt-config shell UpdateInterval
APT::Periodic::Update-Package-Lists DownloadUpgradeableInterval APT::Periodic::Download-Upgradeable-Packages)
...

UPDATE_STAMP=/var/lib/apt/periodic/update-stamp if check_stamp $UPDATE_STAMP $UpdateInterval; then

   if apt-get -qq update 2>/dev/null; then

$ less /etc/apt/apt.conf
APT::Cache-Limit 20000000;

Do you need help?X

As you can see, I haven't enabled the perodic updates in apt.conf, but the check_stamp function returns true if the interval is set to 0, which it is by default (UpdateInterval=0). So "if check_stamp" will return true, and it will then run "apt-get -qq update", even though I haven't enabled it. And, in fact, if I disable it in apt.conf, it will still run it.

Is it just me or is it strange that no one has noticed this before? Doesn't this mean that just about every Debian computer on the Internet is running "apt-get -qq update" every day? Isn't this a waste of bandwidth?

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Wed Jan 2 22:23:01 2008

This archive was generated by hypermail 2.1.8 : Fri Feb 29 2008 - 23:26:32 EST


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library