I have 3 CentOS 6.3 Virtual Servers that I manage. I have them all set-up and configured, but am notoriously bad with remembering to run
yum update on them from time to time.
Is there anyway that I can have some notification of how many updates are available, if any, when logging into the terminal via SSH. Preferably only if there are updates.
I suspect I need to configure a command to run in
.bash_profile however can’t seem to find the correct command using Google.
Hmm. I don’t have anything handy that will tell you at logon, but…
You can install
yum-updatesd and configure it to email you whenever updates are available for the system it’s running on. (You could also configure it to download, or download and install, automatically.) You can also have it write to syslog, if you have something monitoring syslog that can pick it up.
It can also notify by DBus, so theoretically you could hack together a program to listen for the notification and then change
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.