Zend certified PHP/Magento developer

Detect if apt-get update is necessary

Is there a way to detect if running apt-get update is necessary?

It seems that whenever apt-get update is run, it downloads the latest lists even if I already have them, and I want to avoid downloading lists if I already have the latest ones.