Re: running yum update on remote servers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, February 25, 2013 09:03, Dennis Jacobfeuerborn wrote:
> On 02/25/2013 02:48 PM, Robert Moskowitz wrote:
>> I have read a couple old threads here on updates for servers, and I
>> am
>> looking for some mechanics to getting the actual updates done.  I
>> don't
>> want automatic updates; I want to control when and what gets
>> updated.
>>
>> First I have to determine that a particular server needs updates.  I
>> suppose a daily script that would run "yum check-updates' and emails
>> me
>> the results could work, but then I would only want the email IF
>> there
>> was something to update, at my limited use of this option does not
>> show
>> anything to trigger a notify on changes.  Does anyone know of a
>> script
>> that would do this?
>
In crontab:

MAILTO=whomever@whatever
MAILFROM=this_system@whatever
JOBNAME="Check for updates and report if found" ;  /usr/bin/yum
check-update -q

The -q suppresses output unless there is something to report.  Cron
handles the rest.


-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB@xxxxxxxxxxxxx
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux