@patrickdijusto put apt-get update into cron and you never have to think about the order to run the commands.