<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Rackspace RHEL4 updates</title>
	<atom:link href="http://etbe.coker.com.au/2007/06/16/rackspace-rhel4-updates/feed/" rel="self" type="application/rss+xml" />
	<link>http://etbe.coker.com.au/2007/06/16/rackspace-rhel4-updates/</link>
	<description>Linux, politics, and other interesting things</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:09:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tomas H.</title>
		<link>http://etbe.coker.com.au/2007/06/16/rackspace-rhel4-updates/comment-page-1/#comment-1593</link>
		<dc:creator>Tomas H.</dc:creator>
		<pubDate>Sat, 16 Jun 2007 15:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/2007/06/16/rackspace-rhel4-updates/#comment-1593</guid>
		<description>Hi Russell!

I have written following script to get similar functionality to cron-apt configured in download-only mode.  I will get notification email if my system is not fully updated.  Update rpms are downloaded, so they can be immediately installed.

It is trivial to modify this script to automatically install updates.


#!/bin/bash
#
# show available updates
# up2date version

DOWNLOAD_UPDATES=&quot;yes&quot;

UP2DATE_OUT=&quot;`up2date -l &#124; sed &#039;0,/^-----/d&#039;`&quot;


if [ &quot;$UP2DATE_OUT&quot; != &quot;`echo -e &#039;\n&#039;`&quot; ]; then

        if [ &quot;$DOWNLOAD_UPDATES&quot; = &quot;yes&quot; ]; then

                echo &#039;Downloading updated RPMs:&#039;
                echo &#039;-------------------------&#039;
                up2date -u -d

        else

                echo &#039;Out of date packages:&#039;
                echo &#039;---------------------&#039;
                echo

                echo &quot;$UP2DATE_OUT&quot;
                echo

        fi

fi</description>
		<content:encoded><![CDATA[<p>Hi Russell!</p>
<p>I have written following script to get similar functionality to cron-apt configured in download-only mode.  I will get notification email if my system is not fully updated.  Update rpms are downloaded, so they can be immediately installed.</p>
<p>It is trivial to modify this script to automatically install updates.</p>
<p>#!/bin/bash<br />
#<br />
# show available updates<br />
# up2date version</p>
<p>DOWNLOAD_UPDATES=&#8221;yes&#8221;</p>
<p>UP2DATE_OUT=&#8221;`up2date -l | sed &#8217;0,/^&#8212;&#8211;/d&#8217;`&#8221;</p>
<p>if [ "$UP2DATE_OUT" != "`echo -e '\n'`" ]; then</p>
<p>        if [ "$DOWNLOAD_UPDATES" = "yes" ]; then</p>
<p>                echo &#8216;Downloading updated RPMs:&#8217;<br />
                echo &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8217;<br />
                up2date -u -d</p>
<p>        else</p>
<p>                echo &#8216;Out of date packages:&#8217;<br />
                echo &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8217;<br />
                echo</p>
<p>                echo &#8220;$UP2DATE_OUT&#8221;<br />
                echo</p>
<p>        fi</p>
<p>fi</p>
]]></content:encoded>
	</item>
</channel>
</rss>

