cron job to get new package list

Brummelen, M. van (ICT) m.van.brummelen at antoniusziekenhuis.nl
Tue Jun 30 09:53:16 UTC 2009


Hi,

Maybe apticron is usefull for your needs?

Regards,
martijn van Brummelen


-----Oorspronkelijk bericht-----
Van: ubuntu-users-bounces at lists.ubuntu.com namens Amedee @ Ubuntu
Verzonden: di 30-6-2009 11:41
Aan: ubuntu-users at lists.ubuntu.com
Onderwerp: cron job to get new package list
 
Hello list,

I have a daily cron job that does the following:

/usr/bin/aptitude --quiet=2 update && /usr/bin/aptitude --quiet=2
--assume-yes --download-only safe-upgrade


So this refreshes the package list and downloads the packages without
installing them.
It gives me the following output:


Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Reading task descriptions...


I would like it to only send me an email when there are packages to
update. How can I do that?

Kind regards,

-- 
Amedee


-- 
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users





More information about the ubuntu-users mailing list