Skip to Content
+1 (888) 578-8743[email protected]
Ringing Liberty

Ringing Liberty

Freedom through Communications

Home Operations Operations Yum update notification when logging on to CentOS server remotely

Yum update notification when logging on to CentOS server remotely

on January 24, 2013January 24, 2013by

BinaryMisfit asked:

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.

My answer:


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 /etc/motd appropriately.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

bashcentos6loginyum

Post Navigation

apache balancer, workers on internal IPs
Telnet on Windows Server 2012

Related Post

Can I check an uploaded file if broken?

Is it possible to fix corrupt LUKS header?

Nosql autoscaling of compute

convert centos dnf command into ansible

Routing traffic in nginx according to received header

HaProxy – Abillity to redirect subdomains and the base domain to the same backend

Latest Posts

  • CentOS yum-cron updates stability
  • Best solutions for auto deployment of multiple server applications
  • Does the OS stop all PIDs before restarted when the user clicks restart in Ubuntu?
  • How to get the remote hostname resolved through DNS when using Nginx and ModSecurity?
  • tcpdump output has a different hostname

Recent Comments

  • kg on Matching autonomous system numbers in iptables
  • Alex on Matching autonomous system numbers in iptables
  • How do I get puppet master to listen on IPv6? - Ringing Liberty on Making Puppet Enterprise 3.7 work with IPv6
  • Dan on Matching autonomous system numbers in iptables
  • JohnnyB on Making Puppet Enterprise 3.7 work with IPv6

Tags

amazon-ec2 amazon-web-services ansible apache-2.2 apache-2.4 bash cache centos centos6 centos7 configuration debian docker domain-name-system email email-server fedora firewall iptables ipv6 kvm-virtualization linux linux-networking mysql networking nginx php php-fpm postfix redhat redirect reverse-proxy rpm security selinux smtp ssh ssl systemd ubuntu virtual-machines virtualization windows wordpress yum

About Ringing Liberty

Ringing Liberty is the personal web site of Michael Hampton, a professional system administrator.

Email: [email protected]
Phone: +1 888 578-8743

© Copyright 2022 Ringing Liberty. All Rights Reserved. Blossom Consulting | Developed By Blossom Themes. Powered by WordPress.Privacy Policy