cron job to get new package list

Amedee @ Ubuntu amedee-ubuntu at amedee.be
Tue Jun 30 09:41:04 UTC 2009


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





More information about the ubuntu-users mailing list