<?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>experimental &#187; Yum</title>
	<atom:link href="http://www.tajidyakub.com/tag/yum/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tajidyakub.com</link>
	<description>Experience the Experiment</description>
	<lastBuildDate>Sat, 10 Oct 2009 19:32:38 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reinstall Yum Package Manager &#8211; in CentOS</title>
		<link>http://www.tajidyakub.com/nix-basics/reinstall-yum-package-manager-in-centos-2009-10-11.html</link>
		<comments>http://www.tajidyakub.com/nix-basics/reinstall-yum-package-manager-in-centos-2009-10-11.html#comments</comments>
		<pubDate>Sat, 10 Oct 2009 19:32:38 +0000</pubDate>
		<dc:creator>Tajid Yakub</dc:creator>
				<category><![CDATA[Nix Basics]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Reinstall]]></category>
		<category><![CDATA[RPM]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://www.tajidyakub.com/?p=39</guid>
		<description><![CDATA[Somehow in an unlucky moment(s) you'll find that your yum command stop working, I have experienced it a couple of time, never find out how it happen.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tajidyakub.com/wp-content/uploads/2009/10/yum-package-reinstall-centos.jpg"><img class="aligncenter size-full wp-image-40" title="yum-package-reinstall-centos" src="http://www.tajidyakub.com/wp-content/uploads/2009/10/yum-package-reinstall-centos.jpg" alt="yum-package-reinstall-centos" width="540" height="80" /></a></p>
<p>Somehow in an unlucky moment(s) you&#8217;ll find that your yum command stop working, I have experienced it a couple of time, never find out how it happen.</p>
<p><span id="more-39"></span>It is quite simple to re install yum in an rpm base linux distros, specifically CentOS in my case. What you need to do first is to download the source file (rpm) from CentOS repo.</p>
<p>Check your current kernel, make sure you download the correct package later;</p>
<pre class="brush: bash">uname -a
Linux xxx.yyy.com 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:21:56 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux</pre>
<p>Go to the correct repo url, and search for yum rpm link url. For x86_64 Kernel, go to http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/ (assuming that you are using the latest version of CentOS), copy the link of yum package, and download them into your server, you must at this point have wget installed.</p>
<pre class="brush: bash">cd /usr/local/src/
wget http://mirror.centos.org/centos-5/5.3/os/x86_64/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm</pre>
<p>Check yor current version of installed yum</p>
<pre class="brush: bash">rpm -qa | grep yum
yum-metadata-parser-1.1.2-2.el5
yum-updatesd-0.9-2.el5
yum-utils-1.1.16-13.el5.centos
yum-3.2.19-18.el5.centos
yum-fastestmirror-1.1.16-13.el5.centos</pre>
<p>The result confirmed that you have yum-3.2.19-18, erase it using rpm and no dependencies check option.</p>
<pre class="brush: bash">rpm -e --nodeps yum-3.2.19-18.el5.centos</pre>
<p>Reinstall with rpm from yum rpm you just downloaded;</p>
<pre class="brush: bash">rpm -ivh yum-3.2.19-18.el5.centos.noarch.rpm</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.tajidyakub.com/nix-basics/reinstall-yum-package-manager-in-centos-2009-10-11.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
