This is quite simple - I do it myself: You have one line in your crontab like this:
5 1 * * * /usr/bin/apt-get update ; /usr/bin/apt-get -d -y upgrade -d is better because it will download the file, but not upgrade. -y is needed so that it will say 'yes' to downloading the files. That way when it runs at 5 past 1 in the morning, it will be ready for you to look at when you sit down at your desk first thing in the morning :) HTH Andrew ----- Original Message ----- From: "Niclas Söderlund" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 11, 2002 2:29 PM Subject: apt-get automated Hiya folks, any tips on how to have apt-get every evening at a fixed time via cron, do an update (easy) and then a simulated upgrade/dist-upgrade and then mail it to root? I.e I want something telling me its time to do an upgrade of some packages, but dont want it to be run automatically (dangerous, and sometimes .conf files is changed and needs see to on site). I ONLY want the mail if there ARE any upgrades waiting, otherwise not. Any tips appreciated. - Niclas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]