In order to have apt-get run nightly without update and giving yu information about possible changes you need some cron task such as :
Code:
00 03 * * * /usr/bin/apt-get update && apt-get autoclean && /usr/bin/apt-get -q -d -y -u upgrade
you can add this cron task with
The result will be sent to root@yourhostname. You need to have a mailing gateway installed and configured. Mine is postfix. Make sure that (If that is your will) only your host can send emails but no spammers can use it to send emails. To do this I commented out a line in /etc/postfix/master.cf
Code:
sudo vi /etc/postfix/master.cf
and comment this line :
Code:
smtp inet n - - - - smtpd
and verify that this line exists in the same /etc/postfix/master.cf file
Code:
127.0.0.1:smtp inet n - n - - smtpd
restart postfix
Code:
sudo /etc/init.d/postfix restart
according to your needs you may have to tweak /etc/postfix/main.cf
Bookmarks