<?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>[LINICKX].com &#187; migrate</title>
	<atom:link href="http://www.linickx.com/tag/migrate/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linickx.com</link>
	<description>Moments of Genius followed by Trash.</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:06:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Migrate from White Box Linux 4 to CentOS 4.4</title>
		<link>http://www.linickx.com/269/how-to-migrate-from-white-box-linux-4-to-centos-44</link>
		<comments>http://www.linickx.com/269/how-to-migrate-from-white-box-linux-4-to-centos-44#comments</comments>
		<pubDate>Tue, 24 Apr 2007 14:16:47 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Enterprise Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wbel]]></category>

		<guid isPermaLink="false">http://www.linickx.com/blog/archives/269/how-to-migrate-from-white-box-linux-4-to-centos-44/</guid>
		<description><![CDATA[There are somethings that you just never get round to, my nagios box was still running whitebox linux, and I&#8217;ve finally gotten round &#8220;upgrading&#8221; it to CentOS&#8230; yeah ok, upgrade is arguable, but you get my point. First off a &#8230; <a href="http://www.linickx.com/269/how-to-migrate-from-white-box-linux-4-to-centos-44">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are somethings that you just never get round to, my nagios box was still running whitebox linux, and I&#8217;ve finally gotten round &#8220;upgrading&#8221; it to CentOS&#8230; yeah ok, upgrade is arguable, but you get my point.</p>
<p>First off a <strong>warning: Don&#8217;t do this !</strong> All the documentation, for CentOS, RHEL, Fedora, any redhat linux all say, clean installs are the best way, and upgrades are not advised&#8230;. therefore I offer no support or warranty that this will work, in fact, I you advise you to read this post, but step away from your consoles !</p>
<p>But, if you think it might be a laugh, the <a href="http://www.centos.org/modules/smartfaq/faq.php?faqid=19">centos documentation </a>is a bit old, and not 100% correct, so here is what I did. First up (<em>as root &#8211; obviously</em>), clear out your yum cache,and install the CentOS gpg key.</p>
<pre>
yum clean all
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4</pre>
<p>Next, install some base centos packages, take not that some need to be forced on</p>
<pre>
rpm -Uvh --nodeps http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/centos-release-4-4.2.i386.rpm
rpm -ivh http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-4.2.1.i386.rpm
rpm -ivh http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.i386.rpm
rpm -ivh http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/sqlite-3.3.3-1.2.i386.rpm
rpm -Uvh --force http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
rpm -Uvh --nodeps http://mirror.centos.org/centos/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm</pre>
<p>finally remove the whitebox rpm db.</p>
<pre>
rpm -ev rpmdb-whitebox</pre>
<p>Move any &#8220;whitebox&#8221; mirrors still in <em>/etc/yum.repos.d</em> and</p>
<pre>
yum install rpmdb-CentOS</pre>
<p>Once you have that sorted, you can complete the upgrade with</p>
<pre>
yum update
reboot</pre>
<p>&amp; cross your fingers <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
If you come across the following warnings while using yum: Warning, could not load sqlite, falling back to pickle , I found&#8230;</p>
<pre>
yum install python-sqlite</pre>
<p>Fixed the problem. And there we have it, all my boxes are now running CentOS &#8211; yay &#8211; just in time to look at the CentOS 5 upgrade <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Dependency Problems ?</strong><br />
If a whitebox rpm is newer than the CentOS one, it won&#8217;t get upgraded, this might cause problems when installing new packages via yum. To solve the problem download the rpm manually from http://www.centos.org/modules/tinycontent/index.php?id=13 and force an upgrade</p>
<pre>
rpm --force -Uvh Something-CentOS.rpm</pre>
<p><strong>UPDATE:</strong> If you&#8217;re using something like <a href="http://www.rootkit.nl/projects/rootkit_hunter.html">Root Kit Hunter</a>, you will notice a load of md5 hashes fail, these are whitebox rpm&#8217;s that didn&#8217;t need upgrading, to correct the problem you need to replace these with CentOS versions.. example rkhunter output:</p>
<pre>
/sbin/init  [ BAD ]
</pre>
<p>Find which rpm, init belongs to</p>
<pre>
# rpm -q --whatprovides /sbin/init
SysVinit-2.85-34.3
</pre>
<p>and upgrade it</p>
<pre>
wget http://www.mirrorservice.org/sites/mirror.centos.org/4.4/os/i386/CentOS/RPMS/SysVinit-2.85-34.3.i386.rpm
rpm --force -Uvh SysVinit-2.85-34.3.i386.rpm
</pre>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/269/how-to-migrate-from-white-box-linux-4-to-centos-44/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

