<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HostOnNet.com &#187; auto yum update</title>
	<atom:link href="http://blog.hostonnet.com/tag/auto-yum-update/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hostonnet.com</link>
	<description>Windows, Linux, Ubuntu, Web Hosting</description>
	<lastBuildDate>Mon, 07 Jun 2010 08:14:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Auto update CentOS server with yum</title>
		<link>http://blog.hostonnet.com/auto-update-centos-server-with-yum</link>
		<comments>http://blog.hostonnet.com/auto-update-centos-server-with-yum#comments</comments>
		<pubDate>Sun, 31 Jan 2010 09:55:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[auto update]]></category>
		<category><![CDATA[auto yum update]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[cronjob]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[yum update]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=179</guid>
		<description><![CDATA[Create file yum_update.sh vi /etc/cron.daily/yum_update.sh With following content #!/bin/bash &#160; /usr/bin/yum -y -R 120 -d 0 -e 0 update yum /usr/bin/yum -y -R 10 -e 0 -d 0 update -e 0 -d 0 are to only show critical errors. -R adds random delay between command execution. Make it executable chmod 755 /etc/cron.daily/yum_update.sh]]></description>
			<content:encoded><![CDATA[<p>Create file yum_update.sh</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.daily<span style="color: #000000; font-weight: bold;">/</span>yum_update.sh</pre></div></div>

<p>With following content</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>yum <span style="color: #660033;">-y</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">120</span> <span style="color: #660033;">-d</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-e</span> <span style="color: #000000;">0</span> update yum
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>yum <span style="color: #660033;">-y</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">10</span> <span style="color: #660033;">-e</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-d</span> <span style="color: #000000;">0</span> update</pre></div></div>

<p>-e 0 -d 0  are to only show critical errors.<br />
-R adds random delay between command execution.</p>
<p>Make it executable</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">755</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.daily<span style="color: #000000; font-weight: bold;">/</span>yum_update.sh</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/auto-update-centos-server-with-yum/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
