<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 June 2014 15:46, Les Mikesell <span dir="ltr"><<a href="mailto:lesmikesell@gmail.com" target="_blank">lesmikesell@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Thu, Jun 12, 2014 at 4:36 PM, Stephen John Smoogen <<a href="mailto:smooge@gmail.com">smooge@gmail.com</a>> wrote:<br>

><br>
>> if a yum-plugin is able to drop the number somewhere, an echo in .skel<br>
>> would be all the 'UI' we need, and if its there for the default user on<br>
>> instance bringup, the skel should get copied over ( and then the user<br>
>> can do whatever they please ) to all new users as well.<br>
><br>
><br>
> So a cron job which does a<br>
><br>
> yum list updates | awk 'BEGIN{x=0}; {if ($NF~'update') {x=x+1}}; END{print<br>
> "Your system is behind  " x " updates."}' > /etc/centos-updates<br>
> Your system is behind  37 updates.<br>
><br>
> with it all being in python or something. Then in .bashrc a bit of 'if tty<br>
> && SEENALREADY then cat /etc/centos-updates; SEENALREADY=1; fi' type logic<br>
><br>
<br>
</div>a) shouldn't this have a concept of security-related vs other updates?<br>
b) maybe use .bash_profile vs. .bashrc?<br>
c) should it handle multiple users and notify each once?<br>
c) isn't there something gnome-ish that already does this with a gui?<br>
Can the non-gui version share the check and pending value?<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>That is a completely different set of requirements than what was given by KB. </div><div><br></div><div>a) Security updates would require that a yum plugin is installed to parse that information.</div>
<div>b) Correct. It probably would go in /etc/profile.d or some such thing.</div><div>c) The yum is to be run by a cron job to meet KB's requirement that yum is not run every time someone logs in. The login profile fires up if the shell is interactive and the environment variable to not show it again is not set.</div>
<div>d) The GNOME/KDE gui uses packagekit to basically do a repoquery update every couple of minutes. .  it is also a bunch of packages that a remote vm probably won't have installed. </div><div><br></div></div><div><br>
</div>-- <br><div dir="ltr">Stephen J Smoogen.<br><br></div>
</div></div>