apt - How to make my server email me when there are security updates? - Ask Ubuntu
there's way check see when update security update. greeted motd says "there n security updates."
what i'd have server email me list of packages need updating security reasons.
to take step further, email link applicable security notification ubuntu.
basically, each server unique. i've received several emails on security mailing list packages not have install on any/all servers. i'd each individual server tell me needs. way can apply updates in timely manner, while avoiding restarting services apache cause users have downtime.
how this?
from previous post. can run security upgrades via command line with.
sudo unattended-upgrade
i checked out , can use command line option
sudo unattended-upgrade --dry-run
to download not install updates.
when running program not getting output, think because have system set auto-update. if can output figure out updated vs. pending updates , write shell script send email containing of output of pending updates.
then run script cron job.
note: use crontab -e run jobs root.
Comments
Post a Comment